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

Error if I try undo new line code block #1007

Closed
2 tasks done
roland-5 opened this issue Aug 1, 2023 · 4 comments · Fixed by #1015
Closed
2 tasks done

Error if I try undo new line code block #1007

roland-5 opened this issue Aug 1, 2023 · 4 comments · Fixed by #1015
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.

Comments

@roland-5
Copy link
Contributor

roland-5 commented Aug 1, 2023

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin

Neovim Version

NVIM v0.10.0-dev-750+g6425869771 Build type: RelWithDebInfo LuaJIT 2.1.0-beta3 Run "nvim -V1 -v" for more info

Neorg setup

	-- use 'nvim-neorg/neorg'
	{
		"nvim-neorg/neorg",
		build = ":Neorg sync-parsers", -- This is the important bit!
		config = function()
			require("neorg").setup({
				load = {
					["core.defaults"] = {}, -- Loads default behaviour
					["core.concealer"] = {}, -- Adds pretty icons to your documents
					["core.dirman"] = { -- Manages Neorg workspaces
						config = {
							workspaces = {
								dokumenty = "/home/roland/Dokumenty/neorg",
							},
						},
					},
					["core.completion"] = {
						config = {
							engine = "nvim-cmp",
						},
					},
					["core.concealer"] = {
						config = {
							dim_code_blocks = {
								width = "content",
							},
						},
					},
					["core.ui.calendar"] = {},
				},
			})
			vim.api.nvim_set_hl(0, "@neorg.tags.ranged_verbatim.code_block", { bg = "#504945" })
		end,
	},

Actual behavior

Error executing vim.schedule lua callback: ...m/lazy/neorg/lua/neorg/modules/core/concealer/module.lua:1145: assertion failed!
stack traceback:
        [C]: in function 'assert'
        ...m/lazy/neorg/lua/neorg/modules/core/concealer/module.lua:1145: in function 'render_window_buffer'
        ...m/lazy/neorg/lua/neorg/modules/core/concealer/module.lua:1160: in function <...m/lazy/neorg/lua/neorg/modules/core/concealer/m
odule.lua:1157>

Expected behavior

Not this error message.

Steps to reproduce

* List:
@code
  Froasdkl;hasdkjhasdk
  Ext38asdyhjsadvhjsd
  Deaksdjhdasui98wads
  Twiwqdkljdw78qwd
  Thewadskjbdsausda
  Darasdiu23e8asdhjb
  Stiasdklue12387wshjks
  Darsaduikdwq87e3qbhjsa
  Pre3qwri7dwjnkjas
  Thewsadol;ujsda9837qe
  Memwasdkuihdsaiuasdh
  The2389dasjhasbj
  Chi3298dasuhjbasdhjkbsa
  Lasasdouidhsaiqwd8
  Thewadso;hds98qde789
  A Dwloi;hjsda87wadn 
  Horsdalirweasdiuhbsaduk
  The2389rdwuisasbdjhasdv
  Altdsalknsdakjnasdklhdksaj
  Darwad;'ikhdsaihjasdjkl
  Beydasolihdsahgvasdjlbdsfhj
  Thedasikjbdsjhbasdjkasd
  Manawljkhdsjhhdsjkndjask
  Darawsoljhdfskjsjdnajkasdn
  Eveadisjhdaskjjadnsdfjb
  AM1fsdkjhbasdiujsdajbasdf
  Thefadklujhsdklasdnj,
  Pandsfal;jnsdakjnasdn
@end

blablabla blablabla blabl blablalkfsde sflks adkjh sdfygsdj sdfigsdfyusdjfgjsdfghjsdfgj sdj sdfhgsdfhjg sdfjhysdfhsdfjygf asdyj sdfuigsdfjykbsdf ysdfjbfsdj hbsdf jhdfh suj hdfsjsd j sfdjsdfjsdf jhksdf hjgsdf hjsdfjghk

After last thing on the list (Pandsfal;jnsdakjnasdn) if I make new line with "key o" write something and make enter to make another line, click on escape and then try to undo this with "key u" it will throw up error. If I try do this again, new lines after
(Pandsfal;jnsdakjnasdn) have my theme background color (black), but not neorg code block color (grey).

https://asciinema.org/a/xOWyBBiPlHxE46vgMuS2km7H7

Potentially conflicting plugins

No response

Other information

No response

Help

None

Implementation help

No response

@roland-5 roland-5 added the bug Issues related to bugs. Please attach a severity, a priority and category with this label. label Aug 1, 2023
@roland-5
Copy link
Contributor Author

roland-5 commented Aug 1, 2023

Hmm, I notice now if I delete anything that is after @end, like this line

blablabla blablabla blabl blablalkfsde sflks adkjh sdfygsdj sdfigsdfyusdjfgjsdfghjsdfgj sdj sdfhgsdfhjg sdfjhysdfhsdfjygf asdyj sdfuigsdfjykbsdf ysdfjbfsdj hbsdf jhdfh suj hdfsjsd j sfdjsdfjsdf jhksdf hjgsdf hjsdfjghk

this error doesn't occur.

@snomics
Copy link

snomics commented Aug 4, 2023

I encounter the exact same error but without code blocks, just with headings. But I have some trouble to reproduce the error.
I notice that after that error, when undoing a heading the conceal icon is this visible.

@vhyrro
Copy link
Member

vhyrro commented Aug 7, 2023

Github autoclosed this lol. Should now be fixed, update neovim to the latest main branch! Error is removed on my end :)

@roland-5
Copy link
Contributor Author

roland-5 commented Aug 7, 2023

Good Github. He knew what he doing. I can confirm this too. Thanks!

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

Successfully merging a pull request may close this issue.

3 participants