Code Monkey home page Code Monkey logo

Comments (7)

monosans avatar monosans commented on May 29, 2024

Maybe you are formatting a very large template? I have a template of 1300 lines formatted in 2.5 minutes.

The only change since v2023.8.7 that could have affected this was updating the bundled dependencies.

from djlint-vscode.

haraldnh avatar haraldnh commented on May 29, 2024

The files it's supposed to touch are all small. I did update the static files for the swagger-ui bundle at the time, but that is javascript/css only. And djlint is only configured to touch "django-html". It's all a bit weird. (Also running djlint on "everything" from the command line is rapid all the time.)

from djlint-vscode.

monosans avatar monosans commented on May 29, 2024

I also forgot to say that if formatting takes more than a few seconds, VSCode shows a message on the bottom right. As far as I understand, you don't have it?

image

from djlint-vscode.

monosans avatar monosans commented on May 29, 2024

Even when formatting a large file for a long time, my keyboard doesn't lock up. I have no idea why it happens to you.

from djlint-vscode.

haraldnh avatar haraldnh commented on May 29, 2024

Upgraded to v2023.8.10 again now, and after about a minute it gets stuck again. I get the window saying that it's saving/formatting the 'openapi-ui.html' file (which is the file I'm playing with, and it is 42 lines long).

After leaving it alone for some minutes, I pressed "Cancel" which removed the window. The keyboard stays stuck, regardless, and there is a "Code helper" process running at 100% cpu which keeps on running also after pressing cancel.

When I kill that Code helper process (regular TERM signal), things come unstuck. VScode reports "the extension host terminated suddenly" and it seems to clean up. After this I failed to make things get stuck until restarting VScode again.

I'm not sure, but it may be triggered more reliably if I look at the huge js/css/map files for the swagger-ui before making a change to the template. So maybe the issue is that the plugin hooks into more than it should when starting up?

from djlint-vscode.

monosans avatar monosans commented on May 29, 2024

To be sure that this extension is related to the Code Helper process, please try the following: https://apple.stackexchange.com/a/393075.

If you kill djLint process, error logs are recorded. To see the logs, run workbench.action.showOutputChannels command in Command Palette and select djLint there.

from djlint-vscode.

haraldnh avatar haraldnh commented on May 29, 2024

showOutputChannels was useful, thanks. I think I can clear djLint of any wrongdoing, what seems to happen is that the NodeService common thing (--utility-sub-type=node.mojom.NodeService) gets bogged down completely, probably due to the js/css/map files. Everything else using it then falls over, including enough to block text input.

Sorry about the false alarm, it was just really confusing here, and showed up while working on a template.

from djlint-vscode.

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.