{"action":"created","issue":{"url":"https://api.github.com/repos/vknabel/vscode-swift-development-environment/issues/24","repository_url":"https://api.github.com/repos/vknabel/vscode-swift-development-environment","labels_url":"https://api.github.com/repos/vknabel/vscode-swift-development-environment/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/vknabel/vscode-swift-development-environment/issues/24/comments","events_url":"https://api.github.com/repos/vknabel/vscode-swift-development-environment/issues/24/events","html_url":"https://github.com/vknabel/vscode-swift-development-environment/issues/24","id":319626222,"number":24,"title":"Builtin \"swift build\" command invalidates cache for global command","user":{"login":"LinusU","id":189580,"avatar_url":"https://avatars0.githubusercontent.com/u/189580?v=4","gravatar_id":"","url":"https://api.github.com/users/LinusU","html_url":"https://github.com/LinusU","followers_url":"https://api.github.com/users/LinusU/followers","following_url":"https://api.github.com/users/LinusU/following{/other_user}","gists_url":"https://api.github.com/users/LinusU/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusU/subscriptions","organizations_url":"https://api.github.com/users/LinusU/orgs","repos_url":"https://api.github.com/users/LinusU/repos","events_url":"https://api.github.com/users/LinusU/events{/privacy}","received_events_url":"https://api.github.com/users/LinusU/received_events","type":"User","site_admin":false},"labels":[{"id":721377720,"url":"https://api.github.com/repos/vknabel/vscode-swift-development-environment/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-02T16:34:28Z","updated_at":"2018-05-03T09:36:26Z","closed_at":null,"author_association":"NONE","body":"Whenever I save a file in an SPM project, `swift build` will automatically be run. After that has happened, running `swift test` from my terminal rebuilds all dependencies and the source.\r\n\r\nThis is not the case if I just run `swift build` and then `swift test` straight from my terminal.\r\n\r\nI can also see the issue in reverse, that is, after I have run `swift build` or `swift test` from the terminal, the build time is much longer in VS Code.\r\n\r\nThis leads to the very annoying workflow that I save a test file, then wait for everything to be rebuilt from scratch in VS Code, then finally run `swift test` which again rebuilds everything from scratch, and then runs the tests.\r\n\r\nHappy to provide any more information that might be relevant ☺️ "},"comment":{"url":"https://api.github.com/repos/vknabel/vscode-swift-development-environment/issues/comments/386240739","html_url":"https://github.com/vknabel/vscode-swift-development-environment/issues/24#issuecomment-386240739","issue_url":"https://api.github.com/repos/vknabel/vscode-swift-development-environment/issues/24","id":386240739,"user":{"login":"LinusU","id":189580,"avatar_url":"https://avatars0.githubusercontent.com/u/189580?v=4","gravatar_id":"","url":"https://api.github.com/users/LinusU","html_url":"https://github.com/LinusU","followers_url":"https://api.github.com/users/LinusU/followers","following_url":"https://api.github.com/users/LinusU/following{/other_user}","gists_url":"https://api.github.com/users/LinusU/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusU/subscriptions","organizations_url":"https://api.github.com/users/LinusU/orgs","repos_url":"https://api.github.com/users/LinusU/repos","events_url":"https://api.github.com/users/LinusU/events{/privacy}","received_events_url":"https://api.github.com/users/LinusU/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T09:36:26Z","updated_at":"2018-05-03T09:36:26Z","author_association":"NONE","body":"Hmm, the only swift I'm using is `/usr/bin/swift`, as far as I know I don't have multiple versions installed.\r\n\r\nThe strange thing is, as far as I can tell, this package just `spawn(swiftBinPath, ['build'])` and I've just set `swiftBinPath` to `/usr/bin/swift`. It should be exactly the same, but for some reason, the cache gets invalidated 🤔 \r\n\r\nWill try to investigate some more..."}}
{"actor":{"display_login":"LinusU"}}