betterCode icon indicating copy to clipboard operation
betterCode copied to clipboard

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

Open nedoxff opened this issue 4 years ago • 0 comments

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

nedoxff avatar Jun 25 '21 21:06 nedoxff