Skip to content

[Files\write] function segfaults when writting a :dictionary without .json option #2185

@RickBarretto

Description

@RickBarretto

Summary

Function segfaults when passing a :dictionary. In this case, I'm not passing .json attribute to it.

Current Behavior

$> example: #[target: "/home" search: "Arturo"]
$> example >> "example"
SIGSEGV: Illegal storage access. (Attempt to read from nil?)

Expected Behavior

Should express this dictionary into the file:

$> example: #[target: "/home" search: "Arturo"]
$> example >> "example.art"
$> read ./"example.art"
=> #[
    target: "/home"
    search: "Arturo"
]

Steps To Reproduce

No response

OS

Windows 11

Version

arturo 0.10.0 Arizona Bark (amd64/windows)

Anything else?

For reference, when I use write.json:

$> example: #[target: "/home" search: "Arturo"]
$> example >>.json "example.json"
$> read ./"example.json"
=> {
    "target": "/home",
    "search": "Arturo"
}

Issue reported from official Arturo's VS Code extension.

  • VS Code: Visual Studio Code 1.109.3 / Extension: v0.9.1

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Labels

bugSomething isn't workingcriticalCritical, top-priority issuesnew featureNew feature/addition→ Files

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions