Giter VIP home page Giter VIP logo

Comments (14)

sestinj avatar sestinj commented on June 11, 2024 1

@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.

ewebgh33 avatar ewebgh33 commented on June 11, 2024 1

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.

martinguenther avatar martinguenther commented on June 11, 2024 1

I experienced the same, using GPT-4 Turbo in a JavaScript project. The output log showed the result, but not the UI.

2024-02-02_10h14_15

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.

sestinj avatar sestinj commented on June 11, 2024 1

@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.

freakontrol avatar freakontrol commented on June 11, 2024 1

I can confirm that the issue is not happening anymore. Thank you!

from continue.

martinguenther avatar martinguenther commented on June 11, 2024 1

I can confirm too. Looks good. Thanks!

from continue.

sestinj avatar sestinj commented on June 11, 2024

@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.

ewebgh33 avatar ewebgh33 commented on June 11, 2024

@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.

freakontrol avatar freakontrol commented on June 11, 2024

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.

martinguenther avatar martinguenther commented on June 11, 2024

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.

2024-02-05_11h52_11

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.

sestinj avatar sestinj commented on June 11, 2024

@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.

ewebgh33 avatar ewebgh33 commented on June 11, 2024

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.

martinguenther avatar martinguenther commented on June 11, 2024

@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.

martinguenther avatar martinguenther commented on June 11, 2024

@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).

2024-02-07_08h06_01

  1. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.