-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The default swiftlint.path value is invalid on Windows #67
Comments
Hi @tristanlabelle, thanks for your suggestion! As I don't have access to a windows machine, I am not able to test the current build, but I created a beta build for this extension including your fix for windows. Could you give it a try? |
@vknabel I'm having issues with the vsix... I wonder if my VS Code is in a bad state 🤔 |
That's weird. You did nothing wrong. Not sure why it isn't working though. |
Sorry for the delay. I've taken some time off. It seems like shell commands need to be executed differently on windows. Does this release solves your issue? |
@vknabel I will try it out during the week (no computer access right now), but I was just thinking that a fix to this problem would be to implicitly prepend It make a bit more sense too because |
Back in time I did use a different function in the viscose extension which (in theory) would prefix everything with On windows I now use the old way with a thin layer of compatibility. I hope this helps. But I agree |
Thanks a lot for your work and enthusiasm! Sadly I am currently unable to provide the deserved time and energy to this project and the other two extensions (vscode-swiftformat and vscode-apple-swift-format). I'd be happy if you are willing to support me and in the long term eventually take them over. |
Fixes have been released |
Supporting this extension is actually interesting to The Browser Company, where I work. I'll be in touch when I have more info! |
@tristanlabelle you mentioned that you have produced Windows builds of |
@oskargargas realm/SwiftLint#5030 is the patch set for the Windows support for SwiftLint, and jpsim/SourceKitten#769 is the patch set for SourceKitten. There is a prebuilt binary at https://github.com/thebrowsercompany/swift-build/releases/tag/SwiftLint-DEVELOPMENT-SNAPSHOT-2023-08-12-a which is the most recent one, but if there is a need, we should be able to trigger a newer build as well. I'd love help to get the changes for SourceKitten through :) |
Thanks @compnerd for the link. Works like a charm. (+/- CPU usage, but it's probably expected on apparently 10 year old CPU...)
I'll take a look if only time allows. Have a few more days off but also some things planned. |
At The Browser Company, we're fixing
SwiftLint
to run on Windows and have produced builds of it. This allows us to use thevscode-swiftlint
extension almost out-of-the-box, except that the default configuration fails to launchSwiftLint
because the executable is launched via/usr/bin/env
, which does not exist on Windows.vscode-swiftlint/package.json
Lines 65 to 68 in 63b72ae
Could we change the default to be only
"swiftlint"
to make it valid on all platforms? As needed, the/usr/bin/env
could be prepended programatically on unix platforms in the extension code.The text was updated successfully, but these errors were encountered: