Skip to content

Creating a new file saves it in a directory path and crashes the server. #17

@nedoxff

Description

@nedoxff

By pressing "New" when opening a file, it usually sets the path of the file to the source code's directory (which means the file name is empty, and the extension as well)
When saving that file, it crashes the server with:

[save-file /THE/BROKEN/PATH/bettercodeserver/ ]
#object[clojure.core$agent_error 0x19092ab4 clojure.core$agent_error@19092ab4] #error {
 :cause /THE/BROKEN/PATH/bettercodeserver/ (This is a directory)
 :via
 [{:type java.io.FileNotFoundException
   :message /THE/BROKEN/PATH/bettercodeserver/  (This is a directory)
   :at [java.io.FileOutputStream open0 FileOutputStream.java -2]}]

bettercode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions