Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treesitter not work and command not found #651

Open
2 tasks done
SuceV587 opened this issue Nov 4, 2022 · 8 comments
Open
2 tasks done

treesitter not work and command not found #651

SuceV587 opened this issue Nov 4, 2022 · 8 comments
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.

Comments

@SuceV587
Copy link

SuceV587 commented Nov 4, 2022

Prerequisites

  • I am using either 0.7 stable with the 0.0.12 tag or the latest compiled Neovim version
  • I am using the latest version of the plugin

Neovim Version

v0.9.0

Neorg setup

  use {
    "nvim-neorg/neorg",
    ft ="norg",
    run = ":Neorg sync-parsers", -- This is the important bit!
    after = "nvim-treesitter", -- You may want to specify Telescope here as well
    config = function()
      require("neorg").setup {
        -- configuration here
        load = {
          ["core.defaults"] = {},
        }
      }
    end,
  }

Actual behavior

nvim-treesitter seems like not working

image

:Neorg command not working

image

cc version:

cc --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: arm64-apple-darwin22.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Expected behavior


Steps to reproduce


Potentially conflicting plugins

No response

Other information

No response

Help

No response

Implementation help

No response

@SuceV587 SuceV587 added the bug Issues related to bugs. Please attach a severity, a priority and category with this label. label Nov 4, 2022
@max397574
Copy link
Contributor

and you don't get an error messages on startup?

@SuceV587
Copy link
Author

SuceV587 commented Nov 4, 2022

@max397574 no messages

@max397574
Copy link
Contributor

and you're sure you did :PackerSync?

@SuceV587
Copy link
Author

SuceV587 commented Nov 4, 2022

@max397574 yes, i did.

@stickperson
Copy link

I had the same issue when trying this morning. Same cc version and all. I fixed this by installing llvm with brew install lvm then running CC=/opt/homebrew/opt/llvm/bin/clang nvim <path_to_config>, installed neorg, and ran PackerSync

@SuceV587
Copy link
Author

I had the same issue when trying this morning. Same cc version and all. I fixed this by installing llvm with brew install lvm then running CC=/opt/homebrew/opt/llvm/bin/clang nvim <path_to_config>, installed neorg, and ran PackerSync

it did't work for me! i had give up now

@TymekDev
Copy link

@stickperson thanks for pointing me in the right direction! What worked for me was:

brew install llvm
CC=/opt/homebrew/opt/llvm/bin/clang nvim -c 'TSInstallSync norg'

There is a sibling issue in nvim-neorg/tree-sitter-norg repo, however installing gcc suggested there didn't work for me.

@buraksirma
Copy link

Here is another solution specify compiler via nvim-treesitter config. Install gcc and give the binary for it with the command below.

require("nvim-treesitter.install").compilers = { "gcc-12" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.
Projects
None yet
Development

No branches or pull requests

5 participants