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

fix: resolve "no such file or directory" error in scratchpad #254

Conversation

arrow2nd
Copy link
Contributor

@arrow2nd arrow2nd commented Oct 2, 2024

Close #253

After a little investigation, I thought it might be due to the value of script.cwd being kulala: when started with scratchpad.
So I modified it to use the tmp_dir path instead if the value is kulala:.

@gorillamoe gorillamoe added the invalid This doesn't seem right label Oct 2, 2024
@gorillamoe gorillamoe self-assigned this Oct 2, 2024
@gorillamoe
Copy link
Member

gorillamoe commented Oct 2, 2024

The issue might be the script support, but changing the script.cwd to tmp will break the scripts outside of scratchpad use in normal http files.

I'll take a look later.

/Edit

I just noticed that it's just for the scratchpad usage. This indeed might work.

@gorillamoe gorillamoe added bug Something isn't working and removed invalid This doesn't seem right labels Oct 2, 2024
@gorillamoe gorillamoe merged commit 67447c2 into mistweaverco:main Oct 3, 2024
2 checks passed
@arrow2nd arrow2nd deleted the fix-scratchpad-no-such-file-or-directory branch October 3, 2024 07:53
gorillamoe added a commit to rcasia/kulala.nvim that referenced this pull request Oct 7, 2024
…verco#254)

* fix(parser): resolve "no such file or directory" error in scratchpad

* fix(scratchpad): use vim.loop.cwd() for script.cwd

* fix(scratchpad): also handle external files

---------

Co-authored-by: Marco Kellershoff <[email protected]>
iamxiaojianzheng pushed a commit to iamxiaojianzheng/kulala.nvim that referenced this pull request Oct 24, 2024
…verco#254)

* fix(parser): resolve "no such file or directory" error in scratchpad

* fix(scratchpad): use vim.loop.cwd() for script.cwd

* fix(scratchpad): also handle external files

---------

Co-authored-by: Marco Kellershoff <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"no such file or directory" error in scratchpad
2 participants