Closed ewebgh33 closed 8 months ago
@EmmaWebGH Thanks for the report and logs. This appears to be the same as here, which is now number one priority, as it's obviously a fairly large problem.
Aiming to solve this first thing tomorrow morning, but a workaround for before then is to use any version prior to 0.8.5, which is when we introduced the Shiki syntax highlighter
Thanks for that, sorry I didn't see that other bug / realise it was the same!
Will check back tomorrow or later when I can put it properly through it's paces. Been looking forward to it - I can wait a little longer. Thanks!!
@EmmaWebGH Hi, I have a quick follow-up question: the bug from the other issue happened because our syntax highlighter didn't recognize fortran—were you using a particular language when this happened? If so I want to add it to a list so that the bug doesn't happen anymore, and if not then these might be separate errors after all
@sestinj no it was just regular python. The whole file is just a simple fetch of data via API using the requests library, and the part I highlighted and tried to ask a question about (to the local model via Ollama) was just the setting the params for the request.
I experienced the same, using GPT-4 Turbo in a JavaScript project. The output log showed the result, but not the UI.
Also I noticed that sometimes the marked code is shown in the UI and sometimes not, as in the screenshot where only the line numbers are shown.
Restarting VS Code temporarily fixed the issue - but it quickly came back. I now switched to pre-release v0.9.46 as suggested in #793. This seems to work. I'll comment if I experience any further issues throughout the day.
Hi, I still have the same kind of error, I'm using vscodium in linux mint and continue v0.9.49 using a local LLM with oobabooga. In console I saw lot of: "Refused to apply inline style because it violates the following Content Security Policy directive: ..." Also for me restarting vscodium solve temporary the problem. It happens often when asking for c++ snippets.
Just a short follow up: I'm now on V0.9.49. Both .46 and .49 have worked for me since and have always shown the results from LLM in the UI of VS Code.
But, I noticed an issue with code highlighting. Often times it does not work on the code blocks of the LLM's result.
After restarting VS Code and/or switching back an forth (other tabs, or in the history) code highlighting is back, just to disappear again. This is kind of vague - I know - but I could not yet figure out what exactly triggers the error and how to fix it. It seams random to me. Not sure if it's related. Let me know, if I should open a separate issue.
@martinguenther @freakontrol @EmmaWebGH as mentioned here this was a problem with the Shiki syntax highlighter. In version 0.9.52 (pre-release), we've moved to using Monaco and all of these problems appear to have been solved
I'll wait for confirmation before closing this issue
So we should switch to pre-release for now? Apologies I am not familiar with how long the cycle is for pre-release stuff to make it down to the production release. :)
Right now I am using 0.8.3... Usually I avoid pre-release / release-candidate versions in an effort to avoid introducing other issues.
@EmmaWebGH Yes, I believe you should switch to pre-release to get the fix. I've had good experience with it so far. But of course it's up to you :).
@sestinj Thanks for the update. Looks good at first sight :). I'll probably not be able to thoroughly test until tomorrow, 'cause I'm on the road today...
@sestinj I was able do to a more thorough check before take-off :). There still seems to be some issues.
1) Mark code in VS Code, hit ctrl + m
. The code snippet in the prompt is either missing some lines (left side, 18 lines marked, but only 8 shown), or it shows double lines (right side).
2) Code blocks of LLM result are not always highlighted. I have had a result with three separate code blocks in it, divided by text in between, where the first to were highlighted, the last not. And single code block results which were not highlighted. And then again highlighted. It seems pretty random to me.
I am on version v0.9.53 (pre-release) and currently working on TypeScript code. Let me know, if I can further assist.
@martinguenther @freakontrol @EmmaWebGH this should now actually be solved in both main and pre-release. Turns out using Monaco was a really bad idea. Just death by paper cuts. So back to the reliable method we'd been using a couple weeks ago, but this time found a way to get themed syntax highlighting.
Since last time I wanted to close this it still wasn't fixed I'll of course wait to close...let me know how it goes for you.
I can confirm that the issue is not happening anymore. Thank you!
I can confirm too. Looks good. Thanks!
Before submitting your bug report
Relevant environment info
Description
Continue doesn't output anything. As per screenshot. Using Codellama:34b-instruct
It says "here is the revised code" then shows a blank box. Repeatable.
To reproduce
Is this an issue with this model? Or something else? As below - looks like some kind of formatting issue? Printed answer in console but never made it to the window in VSCode. Big red errors in console (see below)
Log output