This does make the error go away, although ‘unpinning’ the main file with :lua vim.lsp.buf.execute_command({ command = 'tinymist.pinMain', arguments = { nil } }) just prints out this error:
-32602: expect Option<PathBuf> at args[0]
It may not be ideal, but it’s better than nothing.
Update: I’ve just tried again, and I can’t reliably make it work using the command I pasted earlier, not even on the same minimal examples.
After some trial and error, I managed to make the error go away by restarting the language server from Neovim. (Even auto completion of the label worked.) However, when I quit Neovim and opened the files again, the error is back.
Hi, I’m experiencing the same issue as Maxigaz, but I’m using VSCode, so the solution provided doesn’t work for me. Does anyone have any suggestions for resolving this in VSCode?
Alternatively, a more generalized solution that works across different editors would be even better.
I’m also struggling to understand how the “each file is its own module” philosophy applies to cross-referencing between modules and using bibliography references when writing a multi-file document. Could someone clarify this?