Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path resolve problem in Windows #14

Open
WayenVan opened this issue Sep 9, 2024 · 1 comment
Open

Path resolve problem in Windows #14

WayenVan opened this issue Sep 9, 2024 · 1 comment

Comments

@WayenVan
Copy link

WayenVan commented Sep 9, 2024

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 WayenVan changed the title Path resolve problem in Winows Path resolve problem in Windows Sep 9, 2024
@AbaoFromCUG
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants