GithubHelp home page GithubHelp logo

Comments (5)

ubolonton avatar ubolonton commented on April 20, 2024

Emacs will try to download the dynamic module from GitHub when installing tsc. One possibility is a temporary network issue.

It could also be an issue with straight. Maybe you can try (straight-pull-package-and-deps "tree-sitter"), or clearing straight's cache. This minimal config works for me https://gist.github.com/ubolonton/651788f3ae3d26cc58c2cbcd9494574d.

from elisp-tree-sitter.

shackra avatar shackra commented on April 20, 2024

well, I cannot build either:

straight--convert-recipe: Could not find package tsc in recipe repositories: (org-elpa melpa gnu-elpa-mirror emacsmirror-mirror)

it seems like we need to register a new recipe for "tsc".

from elisp-tree-sitter.

shackra avatar shackra commented on April 20, 2024

okay, tsc refers to files in https://github.com/ubolonton/emacs-tree-sitter/tree/master/core. this is the Rust part of the project and I believe this package should be available somewhere (i.e.: Melpa) so Straight can fetch it and do whatever it needs to do in order to build emacs-tree-sitter.

from elisp-tree-sitter.

shackra avatar shackra commented on April 20, 2024

I also have this:

;; new package
(use-package tsc
  :straight (tsc :host github
                 :repo "ubolonton/emacs-tree-sitter"
                 :files ("core/*.el")))

(use-package tree-sitter
  :straight (tree-sitter :host github
                         :repo "ubolonton/emacs-tree-sitter"
                         :files ("lisp/*.el" "src" "Cargo.toml" "Cargo.lock"))
  :hook ((after-init . global-tree-sitter-mode)
         ((go-mode python-mode js-mode typescript-mode rust-mode) . tree-sitter-hl-mode)))

(use-package tree-sitter-langs
  :straight (tree-sitter-langs :host github
                               :repo "ubolonton/emacs-tree-sitter"
                               :files ("langs/*.el" "langs/queries")))

and now it works :)

from elisp-tree-sitter.

dwuggh avatar dwuggh commented on April 20, 2024

Emacs will try to download the dynamic module from GitHub when installing tsc. One possibility is a temporary network issue.

It could also be an issue with straight. Maybe you can try (straight-pull-package-and-deps "tree-sitter"), or clearing straight's cache. This minimal config works for me https://gist.github.com/ubolonton/651788f3ae3d26cc58c2cbcd9494574d.

Thanks, this was indeed a network issue.

from elisp-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.