Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 07:54
    fannheyward opened #3435
  • 07:54

    fannheyward on globpath

    fix: use globpath to find local… (compare)

  • Oct 18 22:35
    fannheyward reopened #3388
  • Oct 18 18:07
    oblitum removed as member
  • Oct 18 11:55
    andrevmatos commented #3388
  • Oct 18 11:32
    codecov[bot] commented #3355
  • Oct 18 11:28
    codecov[bot] commented #3355
  • Oct 18 11:27
    fannheyward synchronize #3355
  • Oct 18 11:27

    fannheyward on use-ts-hi-group

    fix: glob pattern for semanticT… (compare)

  • Oct 18 01:18

    fannheyward on master

    use os.tmpdir() if process.env.… (compare)

  • Oct 18 01:18
    fannheyward closed #3421
  • Oct 18 01:12
    yanzhang0219 commented #3434
  • Oct 17 23:36

    fannheyward on master

    feat(document): use latex langu… (compare)

  • Oct 17 23:36
    fannheyward closed #3433
  • Oct 17 23:35
    fannheyward closed #3434
  • Oct 17 23:35
    fannheyward commented #3434
  • Oct 17 23:30
    yanzhang0219 edited #3434
  • Oct 17 23:25
    yanzhang0219 edited #3434
  • Oct 17 23:25
    yanzhang0219 opened #3434
  • Oct 17 22:26
    codecov[bot] commented #3433
spamwax
@spamwax:matrix.org
[m]
I'll try that
jbrashears
@jbrashears
image.png
cryptofish7
@cryptofish7
hey
cryptofish7
@cryptofish7
What is coc#_complete() and how do I configure coc so this function doesn't cause lag?
Qiming zhao
@chemzqm
:h coc-config-suggest
cryptofish7
@cryptofish7
@chemzqm how do i use this ?
Qiming zhao
@chemzqm
Read wiki
1 reply
toty88
@toty88:matrix.org
[m]
Hello guys! Im new to nvim and coc as well but I cant seem to find out how to change default coc-emmet abbreviations
Qiming zhao
@chemzqm

Hello guys! Im new to nvim and coc as well but I cant seem to find out how to change default coc-emmet abbreviations

Why you need change emmet abbreviations?

toty88
@toty88:matrix.org
[m]
html:5 comes with a meta tag that's not useful to me right now! Im in the process of learning html-css-js.. and haven't learned about meta yet
to be honest it doesn't trouble me at all I just wanna learn how to change/create emmet abbreviations haha
Qiming zhao
@chemzqm
It's built in snippet, you have to fork the code if you don't like it.
toty88
@toty88:matrix.org
[m]
Ohh I didn't know! Is there any way of Not changing but adding new abbreviations? I read that putting a snippet.json file at ~/.config/coc/extensions/ works but mine doesn't
Qiming zhao
@chemzqm

I read that putting a snippet.json file at ~/.config/coc/extensions/ works but mine doesn't

Where you read it? coc.nvim itself doesn't load snippet files.

1 reply
toty88
@toty88:matrix.org
[m]
Thanks @chemzqm you've been very helpful!
Qiming zhao
@chemzqm
Maybe https://github.com/mattn/emmet-vim could load emmet snippets from files.
toty88
@toty88:matrix.org
[m]
thanks! wont be any conflicts with coc-emmet? having the two altogether?
mas88
@mas88:matrix.org
[m]
Hi, I'm trying to debug an issue and I'm not sure I can make an reproducible example and I was wondering if anyone could help me with some directions debugging.
When I run :CocCommand pyright.organizeimports I get "[coc.nvim] Error on applyEdits: x is not iterable"
I'm unsure if coc is the correct debug point or pyright.
mas88
@mas88:matrix.org
[m]
Well, I'm a bit flummoxed. I set up Coc for debug and sourced the thing and started logging throughout the function to see where it was failing, checking the value of edits and all, and the function actually works, it just gives me that message (while developing it doesn't say x it says edits).
Here's the traceback from CocOpenLog
 14 2021-07-26T17:26:50.109 ERROR (pid:106577) [workspace] - TypeError: edits is not iterable
 13     at Workspace.applyEdit (/home/mas/.vim/plugged/coc.nvim/build/index.js:36413:33)
 12     at processTicksAndRejections (node:internal/process/task_queues:96:5)        
 11     at async /home/mas/.config/coc/extensions/node_modules/coc-pyright/lib/index.js:23449:7
 10     at async Commands.runCommand (/home/mas/.vim/plugged/coc.nvim/build/index.js:66931:21)
  9     at async Plugin.cocAction (/home/mas/.vim/plugged/coc.nvim/build/index.js:70313:19)
  8     at async NeovimClient2.<anonymous> (/home/mas/.vim/plugged/coc.nvim/build/index.js:70423:15)
I'm not very familiar with any of this stuff. I'd love to figure it out and give you a PR but, like I said, the function actually works, it just throws the message and I can't actually figure out where. I tried logging on every other line to see where there might be a break in my output and it all comes through. Everything in the function executes (except a logging statement in the catch block. I'm sure there's something fishy async going on and I'm terrible with that stuff.
mas88
@mas88:matrix.org
[m]
I'll also note that the error message only started displaying in the past few days. I run Arch, so it could be some weird upgrade that happened. I also PlugUpdate and CocUpdate pretty regularly.
Qiming zhao
@chemzqm
Seems extension using bad WorkspaceEdit
mas88
@mas88:matrix.org
[m]
So you think coc-pyright is the culprit? Should I open an issue there?
Qiming zhao
@chemzqm
Yes
LuisCC
@luisiacc
@mas88:matrix.org Im having that exact error when running pyright.organizeimport command
however running the code action Sort imports with isort works fine.
Francisco Lopes
@oblitum
luisiacc: you need to run :CocCommand python.sortImports to use isort. pyright.organizeimports organize it by pyright, not isort.
by default.
python.sortImports also don't have that issue.
but organizeimports issue should be reported anyways, even if you have just discovered you don't need it at all.
LuisCC
@luisiacc
Oh
Okk, I didnt know that. But the organizeimport command should not throw that error regardless
Francisco Lopes
@oblitum
that's what I said
Heyward Fann
@fannheyward
@mas88:matrix.org reproduced, working on it.
Heyward Fann
@fannheyward
@mas88:matrix.org @luisiacc pyright.organizeimport issue has been fixed on master, will available in next release
1 reply
Cobbi
@GeneralCorn
Screen Shot 2021-07-27 at 9.49.55 PM.jpg
Hi Everyone! Does anyone know how to build the js file?
Screen Shot 2021-07-27 at 9.50.02 PM.jpg
I tried to follow this error message: "[coc.nvim] build/index.js not found, please compile coc.nvim by: npm run build"
Qiming zhao
@chemzqm
@GeneralCorn run yarn install for master branch of coc.nvim
Cobbi
@GeneralCorn
is there a specific way to specify master
Qiming zhao
@chemzqm
What does specify master means?