-
Notifications
You must be signed in to change notification settings - Fork 40
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
VSC extension never showing a result #224
Comments
Can you open a file that has issues in it in the |
Oooooooooooh waiiiiiit it finally worked 😱 I wonder if there's any way to improve the perfs on that one by compiling only the closest project 🤔 We're working in a fairly large monorepo here and all the libs and apps are listed to go though Betterer. How does the ext works? Does it run Betterer with all the projects and then filter out the betterer.results file to only display the current one? |
The extension should only run the tests on the files as they change. But perhaps it's doing the whole application at the start or something? 🤔 |
Could be yeah, I didn't stare and wait on the debug panel but I think it took at least 5/10mn before showing any result 🤔 |
Okay, I'll try to push something with more logging. Any way you could run a perf trace on the normal betterer run? I'm guessing that it will be spending all it's time in the type checker. |
Sure, can you provide some guidance? :) |
Same issue here, errors are just not showing up anywhere. It should be configured correctly, as I do get errors when I manually run I've had a file listed in |
@Svish thanks for the details! I've got a branch in progress that should give me some actual debug output for the extension, so we can get a better idea of what's going on 😊 |
We're also having trouble using the VSCode extension. Apart from Betterer is running icon in the bottom right corner of the editor and output window, I don't get anything in the problems window neither I see the squiggly lines in the code highlighting the problems (There're more than 5000 lines of errors logged to the results file). |
Sorry for the radio silence on this one! My branch from above is still in progress and I'm getting closer to actually shipping it. Hoping that will help me figure out what is going on. |
Hi @phenomnomnominal, would you push the branch that you are working on? I would like to help. |
@shian15810 Hey! Sorry for not updating the issue, the latest stuff is in |
Thanks @phenomnomnominal, will take a look. Also thanks for this tool, it's a life saver! |
One thing is jumping out at me: betterer/packages/extension/src/server/validator.ts Lines 105 to 129 in 5ae9cb3
if your betterer file has more than one test, from what I can tell, the extension is only going to report the issues with the last one! const run = runs[runs.length - 1]; |
Just merged @abrenneke's fix and published a new version of the extension, which might be the fix needed here! |
Alright so things are definitely better(er) now, but there's a new problem - betterer is constantly clearing and redoing validation for documents. It's also queuing validation for every single So, the result is that there are essentially no results showing in VS Code except for sometimes (when everything finally decides to settle down and display results for the file you're actually viewing). It should definitely prioritize running betterer on the file you're currently viewing, if possible. I'll look into it running on the tsconfig files too if I get a chance, because those file aren't even open. |
@abrenneke I just published new versions of the lib and the extension with all the caching stuff enabled (as well as some queueing refactoring in the extension), so I hope it should be a bit better now! If you have a second to try it out that would be amazing! ☀️ |
I'm getting results way faster in the extension now, and they don't disappear on save! Hugely improved, will let you know if they stop appearing for any reason ✌️ 🚀 |
I'm gonna call this one done just cause I love closing issues. If it gets bad again, we'll open a new one! |
I tried the extension after #210 got merged (I'm now on 3.0.2) and I never get a result when looking at Betterer output:
I tried to let that view opened for longer than it takes to run the Betterer command on the project and still nothing, I think it's stuck there (at least for the last 15mn).
Not sure how to help more than that on that one.
If you need any debug logs let me know how I can help 👍
The text was updated successfully, but these errors were encountered: