ark: Opening >1 files with `file.edit()` fails

Open
#857 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
r

Research direction

Start with the file.edit() reproduction and inspect ensure_directory() in the linked ark file, crates/ark/src/modules/private/tools.R. Trace where multiple paths are passed, then verify that file.edit() succeeds when given the two paths shown in the issue without the invalid 'path' error.

Written by the indexing model from the issue text.

Description

bug lang: r
file.edit("/Users/davis/files/programming/netlify/netlify-pat.txt", "/Users/davis/files/programming/cpp/date/CMakeLists.txt")
#> Error in `dir.create()`:
#> ! invalid 'path' argument

Due to ensure_directory() only accepting a single file path at a time
https://github.com/posit-dev/amalthea/blob/7ccaa2678e79a2a49ecb7420b8ec4db533404171/crates/ark/src/modules/private/tools.R#L16-L22

Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 9h
Merged PRs (30d)
195

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from posit-dev/positron

All issues in posit-dev/positron

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.