graasp / graasp-app-code-capsule

A Graasp App to perform code reviews, show, annotate and edit code.
GNU Affero General Public License v3.0
0 stars 0 forks source link

fix: broken syntax highlighting #200

Closed ReidyT closed 8 months ago

ReidyT commented 8 months ago

Upgrading the deps seems to solve this problem:

It seems that the problem come from codemirror and most particulary about python code…

image image

Trying to update the deps

After updating the deps, there is this error:

image

To solve this:

  1. remove all codemirror dependencies in packages.json (also in resolutions).
  2. run yarn command.
  3. clear yarn and npm cache:
    yarn cache clean
    npm cache clean --force
  4. clean vite cache npx vite —force.

This seems to also solve the highlight problem.

image
sonarcloud[bot] commented 8 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud