You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Windows, when launching nvim on a file then the backslash seperator is used, but when browsing files with netrw then the regular slash seperator is used, causing get_filename to return nil.
Setup presence.nvim with require('presence'):setup({ auto_update = true })
Edit a file with nvim
Presence is Editing ... as expected
Enter netrw with :Ex
Presence is Browsing netrw as expected
Choose a file to edit
Presence is still Browsing netrw and Parsed filename nil with no extension is logged
Logs
[presence.nvim] Setting up plugin for windows
[presence.nvim] Using Discord IPC socket path: \.pipediscord-ipc-0
[presence.nvim] Checking Discord IPC socket at \.pipediscord-ipc-0...
[presence.nvim] Using id cc7dd71d-2d27-4c18-b226-dd2876cc178e
[presence.nvim] Completed plugin setup
[presence.nvim] Getting nvim socket paths...
[presence.nvim] Executing command: `powershell.exe, -Command, (Get-ChildItem \.pipe).FullName | findstr 'nvim'`
[presence.nvim] Found unexpected Discord IPC socket type: nil
[presence.nvim] Handling BufEnter event...
[presence.nvim] Connecting to Discord...
[presence.nvim] Connected to Discord
[presence.nvim] Authorizing with Discord...
[presence.nvim] Wrote message to pipe
[presence.nvim] Authorized with Discord for d4
[presence.nvim] Parsed filename README.md with md extension
[presence.nvim] Getting project name for C:UsersmalchAppDataLocal^@vim-datasitepackpackerstartpresence.nvim...
[presence.nvim] Setting activity for C:UsersmalchAppDataLocal^@vim-datasitepackpackerstartpresence.nvimREADME.md...
[presence.nvim] Using file asset: { "Markdown", "markdown" }
[presence.nvim] Adding button with repository URL: https://github.com/andweeb/presence.nvim.git
[presence.nvim] Attaching buttons to activity: { {^@ label = "View Repository",^@ url = "https://github.com/andweeb/presence.nvim.git"^@ } }
[presence.nvim] Detected project: presence.nvim
[presence.nvim] Sync activity to all peers...
[presence.nvim] Setting Discord activity...
[presence.nvim] Wrote message to pipe
[presence.nvim] Set activity in Discord for README.md
[presence.nvim] Got nvim socket paths: {}
[presence.nvim] No other remote nvim instances
[presence.nvim] Got nvim socket paths: {}
[presence.nvim] No other remote nvim instances
[presence.nvim] Handling BufAdd event...
[presence.nvim] Handling BufEnter event...
[presence.nvim] Handling BufAdd event...
[presence.nvim] Handling TextChanged event...
[presence.nvim] Last activity sent was within 10 seconds ago, skipping...
[presence.nvim] Parsed filename presence.nvim with nvim extension
[presence.nvim] Getting project name for C:UsersmalchAppDataLocal^@vim-datasitepackpackerstartpresence.nvim...
[presence.nvim] Setting activity for C:UsersmalchAppDataLocal^@vim-datasitepackpackerstartpresence.nvim...
[presence.nvim] Adding button with repository URL: https://github.com/andweeb/presence.nvim.git
[presence.nvim] Attaching buttons to activity: { {^@ label = "View Repository",^@ url = "https://github.com/andweeb/presence.nvim.git"^@ } }
[presence.nvim] Detected project: presence.nvim
[presence.nvim] Sync activity to all peers...
[presence.nvim] Setting Discord activity...
[presence.nvim] Activity already set for C:UsersmalchAppDataLocal^@vim-datasitepackpackerstartpresence.nvim, skipping...
[presence.nvim] Activity already set for C:UsersmalchAppDataLocal^@vim-datasitepackpackerstartpresence.nvim, skipping...
[presence.nvim] Wrote message to pipe
Error executing vim.schedule lua callback: ...ata\site\pack\packer\start\presence.nvim/lua/lib/log.lua:32: Vim(echomsg):E114: Missing quote: "[presence.nvim] Set activity in Discord for presence.nvim\"
stack traceback:
[C]: in function 'cmd'
...ata\site\pack\packer\start\presence.nvim/lua/lib/log.lua:32: in function <...ata\site\pack\packer\start\presence.nvim/lua/lib/log.lua:28>
[presence.nvim] Handling BufAdd event...
[presence.nvim] Handling BufEnter event...
[presence.nvim] Parsed filename nil with no extension
[presence.nvim] No status text for the given buffer, skipping...
[presence.nvim] Parsed filename nil with no extension
[presence.nvim] No status text for the given buffer, skipping...
The text was updated successfully, but these errors were encountered:
Description
Using Windows, when launching
nvim
on a file then the backslash seperator is used, but when browsing files with netrw then the regular slash seperator is used, causingget_filename
to return nil.Neovim version
OS information
Windows 10 Home version 21H2 build 19044.2130
Steps to reproduce
require('presence'):setup({ auto_update = true })
Editing ...
as expected:Ex
Browsing netrw
as expectedBrowsing netrw
andParsed filename nil with no extension
is loggedLogs
The text was updated successfully, but these errors were encountered: