Skip to content
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

Linting fails over Live Share #48

Open
tetraoxygen opened this issue Aug 29, 2022 · 3 comments
Open

Linting fails over Live Share #48

tetraoxygen opened this issue Aug 29, 2022 · 3 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@tetraoxygen
Copy link

tetraoxygen commented Aug 29, 2022

Report Command failed: /opt/homebrew/bin/swiftlint --use-script-input-files --quiet --reporter json --formaterror opening input file '/Tests/WorkInModelTests/WorkInModelTests.swift' (No such file or directory)Most rules will be skipped because sourcekitd has failed.SourceKittenFramework/File.swift:20: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=260 "The file “WorkInModelTests.swift” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Tests/WorkInModelTests/WorkInModelTests.swift, NSUnderlyingError=0x12e0140e0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}


`Error: Command failed: /opt/homebrew/bin/swiftlint --use-script-input-files --quiet --reporter json --format
error opening input file '/Tests/WorkInModelTests/WorkInModelTests.swift' (No such file or directory)
Most rules will be skipped because sourcekitd has failed.
SourceKittenFramework/File.swift:20: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=260 "The file “WorkInModelTests.swift” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Tests/WorkInModelTests/WorkInModelTests.swift, NSUnderlyingError=0x12e0140e0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

	at ChildProcess.exithandler (node:child_process:406:12)
	at ChildProcess.emit (node:events:390:28)
	at maybeClose (node:internal/child_process:1064:16)
	at Socket.<anonymous> (node:internal/child_process:450:11)
	at Socket.emit (node:events:390:28)
	at Pipe.<anonymous> (node:net:687:12)
os: darwin`
@vknabel
Copy link
Owner

vknabel commented Aug 29, 2022

Hi @tetraoxygen, thanks for your feedback. Did you delete Tests/WorkInModelTests/WorkInModelTests.swift?

@tetraoxygen
Copy link
Author

No, though this was over Live Share.

@vknabel vknabel changed the title Report Command failed: /opt/homebrew/bin/swiftlint --use-script-input-files --quiet --reporter json --formaterror opening input file '/Tests/WorkInModelTests/WorkInModelTests.swift' (No such file or directory)Most rules will be skipped because sourcekitd has failed.SourceKittenFramework/File.swift:20: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=260 "The file “WorkInModelTests.swift” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Tests/WorkInModelTests/WorkInModelTests.swift, NSUnderlyingError=0x12e0140e0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} Linting fails over Live Share Aug 30, 2022
@vknabel vknabel added the bug Something isn't working label Aug 30, 2022
@vknabel vknabel self-assigned this Aug 30, 2022
@vknabel
Copy link
Owner

vknabel commented Dec 12, 2022

This issue takes a little bit more effort as SwiftLint has no direct access to the files.
Configs and the FS is not available.

Probably the extension on the live share host needs to open a server which broadcasts all linting results, while the guests need to send requests to it (like „I opened file xyz“).

This might take a while.

@vknabel vknabel added the help wanted Extra attention is needed label Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants