Git Product home page Git Product logo

Comments (11)

FormalSnake avatar FormalSnake commented on July 17, 2024 1

I will do that in a few hours, I am going to watch FNAF lol 🤣

from fextify.

FormalSnake avatar FormalSnake commented on July 17, 2024

https://tauri.app/v1/api/js/path/#documentdir

from fextify.

face-hh avatar face-hh commented on July 17, 2024

That's a placeholder, you can assume the string is empty. It will fail to read the document regardless of its initial value.

You did however remind me that I've forgot some few if statements while writing the latest commit; I've now added a check to prevent the reset of the config.json file:

let exists = &dir.join("config.json").exists();

About MacOS support, I'm not sure if the code will compile there since the very first line of code is:

#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

I'd be happy to adjust the code to work on Mac if someone will open an issue with the error stack from MacOS

from fextify.

creeperita09 avatar creeperita09 commented on July 17, 2024

ima help you and send the stack trace in like 10 mins

from fextify.

FormalSnake avatar FormalSnake commented on July 17, 2024

So, using bun run dev it worked!
But there seems to be an issue with saving files.

Created config folder in AppData
(MINOR) Child with id not found: 0
(MINOR) Child with id not found: 2321c09016c1b6e
Renamed "Untitled 2321c09016c1b6e.md" to "H.md"
Renamed "H.md" to "He.md"
Renamed "He.md" to "Hel.md"
Renamed "Hel.md" to "Hell.md"
Renamed "Hell.md" to "Hello.md"
(MINOR) Child with id not found: 4e0e21e66fe6e04
Renamed "Untitled 4e0e21e66fe6e04.md" to "H.md"
Renamed "H.md" to "He.md"
Renamed "He.md" to "Hel.md"
Renamed "Hel.md" to "Hell.md"
Renamed "Hell.md" to "Hello.md"
Renamed "Hello.md" to "Hello .md"
Renamed "Hello .md" to "Hello t.md"
Renamed "Hello t.md" to "Hello th.md"
Renamed "Hello th.md" to "Hello the.md"
Renamed "Hello the.md" to "Hello ther.md"
Renamed "Hello ther.md" to "Hello there.md"
Renamed "Hello there.md" to "Hello there!.md"
Rename failed, attempted creation successful.
Renamed "H.md" to "Hi.md"
Couldn't find child with path: H.md
Renamed "Hi.md" to "Hi!.md"
Couldn't find child with path: Hi.md

from fextify.

face-hh avatar face-hh commented on July 17, 2024

Could you try replicating the issue, but only using alphabetical characters in the title? Seems like the error occurred when you inserted "!".

from fextify.

FormalSnake avatar FormalSnake commented on July 17, 2024

It works, but the issue is that the first tab doesn't work, it doesn't save.

from fextify.

FormalSnake avatar FormalSnake commented on July 17, 2024

Renamed ".md" to "f.md"
Couldn't find child with path: .md
Renamed "f.md" to "fi.md"
Couldn't find child with path: f.md
Renamed "fi.md" to "fir.md"
Couldn't find child with path: fi.md
Renamed "fir.md" to "firs.md"
Couldn't find child with path: fir.md
Renamed "firs.md" to "first.md"
Couldn't find child with path: firs.md
Renamed "first.md" to "firstt.md"
Couldn't find child with path: first.md
Renamed "firstt.md" to "firstta.md"
Couldn't find child with path: firstt.md
Renamed "firstta.md" to "firsttab.md"
Couldn't find child with path: firstta.md
Renamed "firsttab.md" to "First tab.md"
Couldn't find child with path: firsttab.md

from fextify.

face-hh avatar face-hh commented on July 17, 2024

It works, but the issue is that the first tab doesn't work, it doesn't save.

That's since it failed once and lost the path forever. To temporarily fix this, you can delete your config.json.

If you take a look at %APPDATA%/Fextify/Data/data/ (may be different on MacOS) you'll see that it's currently being spammed by files.

If you wish, once you empty your config.json, you can follow some debugging steps I've previously provided:

Could you try replicating the issue, but only using alphabetical characters in the title? Seems like the error occurred when you inserted "!".

from fextify.

FormalSnake avatar FormalSnake commented on July 17, 2024

What is that on mac? It is not in Application Support which should be the mac version of %appdata%

from fextify.

face-hh avatar face-hh commented on July 17, 2024

What is that on mac? It is not in Application Support which should be the mac version of %appdata%

I'm unsure, but you can modify src-tauri/src/main.rs at line 46 to be:

println!("{:?}", dir);

Then you can recompile the program on dev (npm run tauri dev), and check the terminal for the path to be printed.

I will reopen this issue until the issue gets resolved.

from fextify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.