Comments (14)
@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
from continue.
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!!
from continue.
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.
from continue.
@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.
from continue.
I can confirm that the issue is not happening anymore. Thank you!
from continue.
I can confirm too. Looks good. Thanks!
from continue.
@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
from continue.
@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.
from continue.
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.
from continue.
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.
from continue.
@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
from continue.
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.
from continue.
@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...
from continue.
@sestinj I was able do to a more thorough check before take-off :). There still seems to be some issues.
- 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).
- 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.
from continue.
Related Issues (20)
- Continue plugin hangs when tried from corporate laptop. Likely need any IP / Host whitelisting information to avoid the issue. HOT 3
- Debug Terminal Not Working: The terminal has no selection to copy HOT 1
- Cannot connect to ollama server on remote HOT 3
- add "imported function" to power the generated result of tabAutocomplete HOT 1
- Not able to use with proxy HOT 1
- [CON-226] File watcher on config.json to catch updates from outside the currently open window HOT 5
- [CON-227] Model Roles HOT 5
- Using llama3 for causes never ending response. HOT 2
- [CON-228] "url" context provider
- # DRAFT (Continue-generated): Syntax error in example.ts codeblock.
- Set User-Agent HTTP header
- VS Code Extension Shows Duplicate Entries in Model Selection Dropdown HOT 1
- VS Code Remote Dev SSH always autocompletes }
- Indexing breaks at 20%-70% HOT 4
- Intellij IDE Internal Error "Wrong line separators" on Windows
- After selecting 'run fully local' it appears to still send my code to a server HOT 2
- Error: Hovering over code block can cause error in v0.9.114+ HOT 2
- configuration not reloading in pycharm
- Support authentication for ollama used as embeddingsProvider
- New model wizard should not add duplicate models 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 continue.