L3MON4D3 / LuaSnip

Snippet Engine for Neovim written in Lua.
Apache License 2.0
3.5k stars 245 forks source link

Windows: friendly snippets not loaded #1168

Closed atauzki closed 6 months ago

atauzki commented 6 months ago

I added friendly snippets by the documentation

 require("luasnip.loaders.from_vscode").lazy_load()

it works on my WSL enviornment but it doesn't work on Windows build of nvim, Then I changed the config and force to use slash instead of backslash in the path

 require("luasnip.loaders.from_vscode").lazy_load({paths = vim.fn.stdpath('data') .. "/lazy/friendly-snippets"})

then it works.

So is there any problem on the default behavior of path separator?

L3MON4D3 commented 6 months ago

Hi :) Could you look in your log what paths are being loaded with the unmodified lazy_load? Insert require("luasnip").log.set_loglevel("info") before the call to lazy_load, start a session, and then do :lua require("luasnip").log.open()

atauzki commented 6 months ago

log file

INFO  | vscode-loader: Found manifests `{ "C:/Users/ps031/AppData/Local/nvim-data/lazy/friendly-snippets/package.json" }` for paths `nil`.
INFO  | vscode-loader: Determined roots `{}` for lazy_paths `{}`.
INFO  | path-watcher: Monitoring file C:/Users/ps031/AppData/Local/nvim-data/lazy/friendly-snippets/package.json with autocmd-monitor.
INFO  | path-watcher: adding path C:/Users/ps031/AppData/Local/nvim-data/lazy/friendly-snippets/package.json
ERROR | vscode-loader: Could not create collection for manifest C:/Users/ps031/AppData/Local/nvim-data/lazy/friendly-snippets/package.json: ...im-data/lazy/LuaSnip/lua/luasnip/loaders/from_vscode.lua:335: Could not create watcher: ...im-data/lazy/LuaSnip/lua/luasnip/loaders/from_vscode.lua:185: invalid value (nil) at index 1 in table for 'concat'
INFO  | vscode-loader: Loading lazy-load-snippets for filetype `lua`
INFO  | vscode-loader: Loading lazy-load-snippets for filetype `all`
INFO  | lua-loader: Loading lazy-load-snippets for filetype `cmp_menu`
INFO  | snipmate-loader: Loading lazy-load-snippets for filetype `cmp_menu`
INFO  | vscode-loader: Loading lazy-load-snippets for filetype `cmp_menu`
INFO  | lua-loader: Loading lazy-load-snippets for filetype `all`
INFO  | snipmate-loader: Loading lazy-load-snippets for filetype `all`
INFO  | vscode-loader: Loading lazy-load-snippets for filetype `all`
INFO  | lua-loader: Loading lazy-load-snippets for filetype `lua`
INFO  | snipmate-loader: Loading lazy-load-snippets for filetype `lua`
INFO  | vscode-loader: Loading lazy-load-snippets for filetype `lua`

and another log file with force-specified path:

INFO  | vscode-loader: Found manifests `{ "C:\\Users\\ps031\\AppData\\Local\\nvim-data\\lazy\\friendly-snippets\\package.json" }` for paths `{ "C:/Users/ps031/AppData/Local/nvim-data/lazy/friendly-snippets" }`.
INFO  | vscode-loader: Determined roots `{}` for lazy_paths `{}`.
INFO  | path-watcher: Monitoring file C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\package.json with autocmd-monitor.
INFO  | path-watcher: adding path C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\package.json
INFO  | vscode-loader: Registering lazy-load-snippets for ft `ocamlinterface` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\ocaml\ocaml.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `sql` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\sql.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `bib` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\latex\bibtex.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `twig` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\twig.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `angular` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\angular\html.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `angular` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\angular\jsonc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `angular` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\angular\typescript.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `unreal` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\unreal.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `kdoc` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\kotlin\kdoc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `cdoc` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\c\cdoc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `fsh` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\fsh.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `liquid` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\liquid.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `csharp` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\csharp\csharp.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `edge` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\edge.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `csharpdoc` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\csharp\csharpdoc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `powershell` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\PowerShell.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `rmd` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\r.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `rmd` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\markdown.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `rmd` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\rmarkdown.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `NeogitCommitMessage` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\gitcommit.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `r` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\r.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `go` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\go.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `global` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\global.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `gdscript` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\gdscript.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `html` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\html.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `html` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\global.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `cpp` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\cpp\cpp.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `rust` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\relm4\factories.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `rust` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\relm4\templates.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `rust` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\rust\rust.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `rust` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\relm4\components.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `rust` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\relm4\workers.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `luadoc` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\lua\luadoc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `c` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\c\c.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `gleam` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\gleam.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `plaintex` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\latex\latex-snippets.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `plaintex` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\latex\vscode-latex-snippets.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `plaintex` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\latex.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `svelte` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\svelte.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `svelte` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\javascript.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `all` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\global.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `beancount` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\beancount.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `jsdoc` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\jsdoc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `rdoc` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\ruby\rdoc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `purescript` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\purescript.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `rails` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\rails.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `dune-project` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\ocaml\dune-project.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `dune` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\ocaml\dune.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `rustdoc` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\rust\rustdoc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `ocaml.ocamllex` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\ocaml\ocamllex.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `vhdl` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\vhdl.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `markdown` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\markdown.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `markdown` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\global.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `verilog` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\verilog.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `editorconfig` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\editorconfig.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `tex` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\latex\latex-snippets.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `tex` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\global.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `tex` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\latex\vscode-latex-snippets.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `tex` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\latex.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `nu` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\nushell.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `ps1` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\PowerShell.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `dockerfile` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\docker\docker_file.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `glsl` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\glsl.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `unity` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\unity.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `pug` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\html.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `scala` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\scala.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `shelldoc` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\shell\shelldoc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `objc` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\objc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `dart` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\dart.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `make` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\make.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `plantuml` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\plantuml.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `yaml` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\kubernetes.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `yaml` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\docker\docker-compose.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `mint` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\mint.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `java-testing` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\java\java-tests.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `swift` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\swift.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `javadoc` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\java\javadoc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `norg` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\norg.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `org` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\org.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `systemverilog` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\systemverilog.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `quarto` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\quarto.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `erlang` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\erlang.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `gitcommit` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\gitcommit.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `less` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\css.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `scss` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\css.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `eruby` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\html.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `eruby` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\erb.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `typescriptreact` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\react-native-ts.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `typescriptreact` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\react-es7.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `typescriptreact` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\react-ts.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `typescriptreact` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\typescript.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `typescriptreact` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\next-ts.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `javascriptreact` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\react-native.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `javascriptreact` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\html.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `javascriptreact` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\react-es7.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `javascriptreact` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\next.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `javascriptreact` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\javascript.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `javascriptreact` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\react.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `heex` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\eelixir.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `jade` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\html.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `tcl` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\tcl.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `cobol` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\cobol\vscode_cobol.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `cobol` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\cobol\vscode_cobol_jcl.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `cobol` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\cobol\vscode_cobol-compound.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `cobol` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\cobol\vscode_cobol_dir.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `ejs` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\ejs.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `license` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\license.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `bibtex` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\latex\bibtex.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `reason` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\reason.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `java` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\java\java.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `shell` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\shell\shell.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `rescript` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\rescript.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `php` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\php\php.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `ruby` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\ruby\ruby.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `elixir` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\elixir.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `cppdoc` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\cpp\cppdoc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `htmldjango` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\djangohtml.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `htmldjango` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\html.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `python` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\python\python.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `python` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\python\base.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `python` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\python\comprehension.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `python` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\python\unittest.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `python` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\python\debug.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `javascript` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\javascript.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `typescript` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\typescript.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `tsdoc` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\tsdoc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `blade` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\blade\livewire.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `blade` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\blade\snippets.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `blade` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\html.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `blade` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\blade\blade.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `blade` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\blade\helpers.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `asciidoc` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\asciidoc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `vue` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\vue\html.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `vue` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\vue\style.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `vue` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\vue\nuxt-html.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `vue` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\vue\vue.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `vue` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\vue\nuxt-script.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `vue` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\vue\script.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `vue` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\javascript\javascript.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `fennel` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\fennel.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `solidity` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\solidity.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `lua` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\lua\lua.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `nix` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\nix.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `terraform` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\terraform.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `julia` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\julia.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `stylus` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\css.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `sass` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\css.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `astro` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\html.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `css` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\css.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `pydoc` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\python\pydoc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `kotlin` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\kotlin\kotlin.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `django` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\django\forms.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `django` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\django\models.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `django` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\django\views.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `django` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\django\tags.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `django` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\django\urls.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `django` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\django\admin.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `haskell` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\haskell.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `fortran` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\fortran.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `eelixir` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\eelixir.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `shellscript` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\shell\shell.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `cs` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\csharp\csharp.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `phpdoc` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\php\phpdoc.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `djangohtml` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\djangohtml.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `zsh` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\shell\shell.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `django-rest` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\django\django_rest\serializers.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `django-rest` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\django\django_rest\views.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `sh` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\shell\shell.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `ocaml` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\ocaml\ocaml.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `flutter` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\flutter.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `plaintext` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\global.json`
INFO  | vscode-loader: Registering lazy-load-snippets for ft `jekyll` from file `C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\frameworks\jekyll.json`
INFO  | vscode-loader: Initialized snippet-collection with manifest C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\package.json
INFO  | vscode-loader: Loading lazy-load-snippets for filetype `lua`
INFO  | vscode-loader: Registering file C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\lua\lua.json with filetype lua for loading.
INFO  | path-watcher: Monitoring file C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\lua\lua.json with autocmd-monitor.
INFO  | path-watcher: adding path C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\lua\lua.json
INFO  | loaders: Adding 18 snippets and 0 autosnippets from C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\lua\lua.json to ft `lua`
INFO  | vscode-loader: Loading lazy-load-snippets for filetype `all`
INFO  | vscode-loader: Registering file C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\global.json with filetype all for loading.
INFO  | path-watcher: Monitoring file C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\global.json with autocmd-monitor.
INFO  | path-watcher: adding path C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\global.json
INFO  | loaders: Adding 11 snippets and 0 autosnippets from C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\global.json to ft `all`
INFO  | lua-loader: Loading lazy-load-snippets for filetype `cmp_menu`
INFO  | snipmate-loader: Loading lazy-load-snippets for filetype `cmp_menu`
INFO  | vscode-loader: Loading lazy-load-snippets for filetype `cmp_menu`
INFO  | lua-loader: Loading lazy-load-snippets for filetype `all`
INFO  | snipmate-loader: Loading lazy-load-snippets for filetype `all`
INFO  | vscode-loader: Loading lazy-load-snippets for filetype `all`
INFO  | vscode-loader: Registering file C:\Users\ps031\AppData\Local\nvim-data\lazy\friendly-snippets\snippets\global.json with filetype all for loading.
L3MON4D3 commented 6 months ago

Ahh, I think the issue is that

I think the proper fix would be to modify get_rtp_paths to return a \-separated path on windows,:gsub("/", "\\") would be enough in your case, I think it would also be fine in the general case, since / is converted to \ anyway by windows (AFAIK), so files shouldn't contain a non-path-separating /

I'll look into it a bit more to be certain, but expect a fix relatively soon :)

leiserfg commented 6 months ago

Actually, in Windows, both paths are valid so we should handle them (I think we used to do it and there is a regression 🤔 )

L3MON4D3 commented 6 months ago

Ah, okay, then we have to fix Path.parent. I guess on windows we should cut at / or \, on linux a backslash may be valid in a filename and we'd cut at the wrong spot, so only / there

leiserfg commented 6 months ago

I don't know if in vim.fs. is working well in windows (a long time ago it didn't) in case it works fine we could use vim.fs.normalize