neopyter icon indicating copy to clipboard operation
neopyter copied to clipboard

Path resolve problem in Windows

Open WayenVan opened this issue 1 year ago • 1 comments

Hi, when I use the plugin in windows using proxy mode the following error occurred

Error executing luv callback:
.../nvim-data/lazy/plenary.nvim/lua/plenary/async/async.lua:18: The coroutine failed with this message: ...ata/Local/nvim-data/lazy/neopyter/lua/neopyter/utils.lua:190: ENOENT: no such file or directory: C:\package.json
stack traceback:
	[C]: in function 'error'
	.../nvim-data/lazy/plenary.nvim/lua/plenary/async/async.lua:18: in function 'callback_or_next'
	.../nvim-data/lazy/plenary.nvim/lua/plenary/async/async.lua:45: in function <.../nvim-data/lazy/plenary.nvim/lua/plenary/async/async.lua:44>
nect the server

after a glance in source code, the problem is that in

lua/neopyter/jupyter/jupyterlab.lua line 8:

local __filepath__ = debug.getinfo(1).source:sub(2)

the _filepath acquired by dubug function is like

C:/xxx/xxxxx/xxxxx.lua which should be converted to C:\xxx\xxxxx\xxxxx.lua for plenary to recognised it correctly.

WayenVan avatar Sep 09 '24 18:09 WayenVan

Yeah, you are right. I will find a solution for this issue later.

AbaoFromCUG avatar Oct 11 '24 02:10 AbaoFromCUG

Fixed

AbaoFromCUG avatar Jul 28 '25 10:07 AbaoFromCUG