Comments (8)
Interestingly, a lot of the other completion tests (`test/IDE/complete_*`) have leaks detected by LSAN even at commit 482d062. So maybe there were already some completion-related leaks, and then PR26403 added even more?
from swift-syntax.
@rintaro have you made any progress on this? It's currently blocking some work on a Google-internal SourceKit deployment that I'm working on. Would it maybe be possible to roll back the PR?
from swift-syntax.
@marcrasi Sorry for being late.
swiftlang/swift#26664 fixes leak in IDE/complete_repl_identifier_prefix_1.swift which is introduced by swiftlang/swift#26403
Interestingly, a lot of the other completion tests (`test/IDE/complete_*`) have leaks detected by LSAN even at commit 482d062. So maybe there were already some completion-related leaks, and then PR26403 added even more?
Right. I'm still fixing existing leaks.
from swift-syntax.
Awesome, I just verified that swiftlang/swift#26664 fixes the issue in the Google-internal SourceKit too! Thanks 🙂
from swift-syntax.
Do you think it would be possible to configure the LSAN CI job to run some SourceKit completion tests, to catch regressions earlier? Looks like that job currently doesn't run any tests (https://github.com/apple/swift/blob/1afd0f7cf757ba6b12d2af0d151eafb022acf439/utils/build-presets.ini#L1084), I guess because a lot of them leak so the job would just fail. Maybe we could configure it to run a whitelisted subset of tests under LSAN and slowly whitelist more tests as more leaks get fixed.
I'd be happy to look into this if you think it's a good idea.
from swift-syntax.
I think that's great idea. Could you file another JIRA issue for that?
CC: @shahmishal
from swift-syntax.
Filed https://bugs.swift.org/browse/SR-11313 !
from swift-syntax.
Merged swiftlang/swift#26664
from swift-syntax.
Related Issues (20)
- Improperly escaped backslash in fix-it message HOT 1
- New 600.0.0 prerelease HOT 4
- FixItApplier crash when generating diagnostics for whole tree but applying them to a subtree HOT 11
- Further generalize parse diagnostics functions HOT 1
- Body Macro formatted despite formatMode disabled HOT 2
- Improve diagnostics for C-style parameter declaration with structural type HOT 1
- [Parser] Misparsed function parameter with keyword argument '_const' HOT 1
- `600.0.0-prerelease-2024-07-24` fails to build on macOS 12 with Swift 5.10 HOT 12
- swift-syntax doesn't give negative integer literals special treatment while the Swift compiler does. HOT 2
- Source location retrieving doesn't work in body macro expansion assertion HOT 1
- KeyPath `.self` cannot be resolved in earlier Swift versions HOT 1
- Detect recursive attached macro expansion HOT 1
- Macro protocols lack `async` from `expansion` function requirements despite proposals stating they should have it HOT 17
- DeclModifierListSyntax adds redundant space after private modifier HOT 2
- Multiple SPM frameworks with macros fail Xcode app project build HOT 2
- swift format fails when using new `sending` keyword HOT 4
- [Swift 6.0] Xcode Beta 16 build failure HOT 10
- Invalid semantic versioning? HOT 2
- Compiler crash while emitting witness table for protocol conformance
- [Diagnostics] Intra-group trivia not preserved when moving a node group 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 swift-syntax.