-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Neorg Kickstart Config Error when Opening a Neorg File #1501
Comments
Looks like the parser failing to build on your system b/c it's not using c++11 or newer, while the parser uses a c++11 feature. Given this part of the error.
Some people have had success in the past with adding this to their zsh/bashrc |
or using a different compiler |
@benlubas indeed you are correct about the C++ version. Strange thing is that this line already specifies to use the proper version: local cc = "clang++ -std=c++11" I was able to run this command locally in zsh with a small test file as input and compilation was successful: clang++ -std=c++11 -o output_file test.cpp Not sure why it failed when run from the Lua file. I also tried setting the @max397574 I'm curious how you managed to get it working my using a different compiler. Looks like the line I linked above hard codes clang++ compiler, unless it can be overwritten. C++ compilers are very unfamiliar territory for me, so I'm very likely missing something. |
Solved it. Needed to add If it is there somewhere the issue can be closed. Otherwise, I'll leave this open and find some time to submit a pull request with a minor update to the docs. |
|
@stephenloggedon I believe you should just set edit: found this in the documentation. It seems your command should work... I was setting the environment variable in my |
Prerequisites
Neovim Version
NVIM v0.10.0 Build type: Release LuaJIT 2.1.1716656478
Neorg setup
Using the unmodified neorg config from the norg-kickstart config
Actual behavior
When opening a
.norg
file after installing the packaged defined in the kickstarterinit.lua
file, I get the following output (middle section omitted for brevity):After this process finishes, the moment I enter insert mode in the
.norg
file, I get the following error:Expected behavior
The expected behavior was that the
.norg
file could be opened and modified that file with Neorg functionality, especially since this was kickstarter Neorg config file.Steps to reproduce
Backup any existing nvim configuration files and downloaded packages:
Create a new nvim directory and
init.lua
file:Proceed to copy and past the contents of the
init.lua
file specified in the kickstart config to the newly createdinit.lua
file.Launch nvim to install the packages:
Once all packages are installed, create a new
.norg
file and open it with nvim:The errors are shown immediately upon opening the file. A further set of errors are shown when entering insert mode.
Potentially conflicting plugins
None. I am using the kickstarter configuration file and have backed up my old configuration and
~/.local/share/nvim
directory.Other information
Using M3 MBP 36GB RAM
Installed luajit with Brew:
Help
No
Implementation help
No response
The text was updated successfully, but these errors were encountered: