You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/03/08 17:11:10 UTC

[GitHub] [camel-karavan] cgballance opened a new issue #207: windows no such file or directory #72

cgballance opened a new issue #207:
URL: https://github.com/apache/camel-karavan/issues/207


   The commit for issue #72 does not work.  my local change...replace getRalativePath (sic)
   I changed path to fsPath and forced normalization of the path because the workspace folder path is normalilzed already.
   Would somebody please try on *nix?
   
   function getRalativePath(fullPath:string): string {
       const root = vscode.workspace.workspaceFolders ? vscode.workspace.workspaceFolders[0].uri.fsPath : "" ;
       //
       // normalize fullPath before we try to look for common base(win32 needs this).
       //
       const nFullPath: vscode.Uri = vscode.Uri.file( fullPath ) ;
       const relativePath =  path.resolve(nFullPath.fsPath).replace(root + path.sep, '');
   
       return relativePath;
   }


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] mgubaidullin commented on issue #207: windows no such file or directory #72

Posted by GitBox <gi...@apache.org>.
mgubaidullin commented on issue #207:
URL: https://github.com/apache/camel-karavan/issues/207#issuecomment-1062227508


   would you mind make a PR?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] cgballance commented on issue #207: windows no such file or directory #72

Posted by GitBox <gi...@apache.org>.
cgballance commented on issue #207:
URL: https://github.com/apache/camel-karavan/issues/207#issuecomment-1072503436


   simpler change having the same effect, just resolve root as well:
   const relativePath =  path.resolve(fullPath).replace( path.resolve(root) + path.sep, '');
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] mgubaidullin closed issue #207: windows no such file or directory #72

Posted by GitBox <gi...@apache.org>.
mgubaidullin closed issue #207:
URL: https://github.com/apache/camel-karavan/issues/207


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org