GithubHelp home page GithubHelp logo

Comments (4)

songhtdo avatar songhtdo commented on July 19, 2024 1

This issue has been resolved.
I have developed a small local application by combining the tree sitter and csharp tree sitter projects. You can skip using tree -sitter playground anymore.

The project source code has been uploaded to the GitHub project: tree-sitter-play

The project screenshot is as follows:
image

from tree-sitter.

amaanq avatar amaanq commented on July 19, 2024

clone the repo, run ./script/build-wasm, then run cargo install --path cli and it'll bundle in the locally built tree-sitter.js/wasm files, as for the others, I have no clue, I don't get what you're asking exactly, I'm just assuming you are asking how to run a playground without needing an internet connection in regards to the playground subcommand

from tree-sitter.

songhtdo avatar songhtdo commented on July 19, 2024

@amaanq
Hello, thank you very much for your attention and reply.

Maybe I didn't express myself clearly, let me describe it again.
Normally, our computer will be connected to the Internet, and we can access tree-siter.github.io/tree-sitter/playground through the browser to test some syntax. Alternatively, test it locally through tree-sitter playground.
But in some cases, computers are completely separated from the Internet environment and physically isolated. At this point, to test some syntax with playground, I need to use the local tree sit playground command.

To run the tree-sitter program locally, I need to start from the https://cdnjs.cloudflare.com The website downloads some js/css files. This step is unsuccessful when the Internet cannot be accessed. cause http://127.0.0.1:8000 The page is not working properly.

I would like to ask if there is a way to solve this problem.
Thank you again.

from tree-sitter.

sogaiu avatar sogaiu commented on July 19, 2024

I tested tree-sitter playground while disconnected from networks and at least for my setup, the result was not usable:

tree-sitter-playground-offline-in-firefox

After I re-established a network connection and reloaded, things started working:

tree-sitter-playground-online-in-firefox

IIUC, the former of the two results is what is being described as what is being experienced and the desire is for things to work even while offline.

from tree-sitter.

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.