Comments (8)
You have to pass in an absolute path for now
from sourcekitten.
@Keithbsmiley did you ever try again by passing in the absolute path?
from sourcekitten.
Yea that worked fine. Didn't know if you wanted this open as a reference or not.
from sourcekitten.
now that I've changed the title, it's more of a feature request, so we'll keep that open π.
Speaking of which, do you know what the Foundation equivalent of Ruby's File.expand_path
would be? Looks like it might be stringByStandardizingPath
.
from sourcekitten.
NSString.pathWithComponents(NSFileManager.defaultManager().currentDirectoryPath, userPath).stringByStandardizingPath
?
from sourcekitten.
Might have to check if the path that was given is absolute first.
from sourcekitten.
let absolutePath: String = {
if (userPath as NSString).absolutePath {
return userPath
}
else {
return NSString.pathWithComponents([NSFileManager.defaultManager().currentDirectoryPath, userPath]).stringByStandardizingPath
}
}()
from sourcekitten.
Looks like a winner to me, wanna try that out, @segiddins?
from sourcekitten.
Related Issues (20)
- Possibility of running multiple sourcekitten services in parallel HOT 6
- Sourcekitd not found HOT 1
- Swift API generated from Objective-C code doesn't resolve forward declarations HOT 4
- Incredibly weird "illegal hardware instruction" error HOT 1
- Add an option for trimmingTrailingWhitespace to ignore whitespace only lines HOT 5
- illegal hardware instruction HOT 3
- Sourcekitten 'complete' resulting in Loading standard library failed. HOT 3
- SourceKit asynchronous requests HOT 2
- Code Blocks for case statements not reported in Structure HOT 2
- `File.contents` will crash for files that cannot be read later, when initialised with `init(pathDeferringReading:)`
- make: *** [install] Error 71 HOT 1
- Request.syntaxTree not found "key.serialized_syntax_tree" in Apple Silicon M2 Xcode14.3 HOT 1
- Crash when running sourcekitten HOT 3
- Error: No such module 'SWXMLHash' HOT 3
- Add argument to specify output directory for `swift` or `xcodebuild` logs
- How to specify external SPM dependencies? HOT 1
- SPM build manifest does not exist⦠or does not match expected format HOT 14
- Illegal instructions 4 when parsing enum HOT 1
- Linux: SourceKittenFramework/library_wrapper.swift:31: Fatal error: Loading libsourcekitdInProc.so failed HOT 1
- Failure to build with Xcode 15 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sourcekitten.