Giter VIP home page Giter VIP logo

Comments (10)

HananoshikaYomaru avatar HananoshikaYomaru commented on June 9, 2024 1

yeah. If you really need help, just feel free to arrange a call with me.

https://cal.com/manlung

from obsidian-run.

HananoshikaYomaru avatar HananoshikaYomaru commented on June 9, 2024

Interesting. Can you give me a code to reproduce. I cannot use your code because of the require statement

from obsidian-run.

StefanoRausch avatar StefanoRausch commented on June 9, 2024

I use the Modules plugin: https://github.com/polyipseity/obsidian-modules -- obsidian://show-plugin?id=modules.

There may be something in the codebase that gives you an indication.

from obsidian-run.

HananoshikaYomaru avatar HananoshikaYomaru commented on June 9, 2024

sorry, I cannot do this because because I cannot fix my plugin just to integrate with another plugin. As long as normal async function work, I will treat the feature as "complete".

from obsidian-run.

HananoshikaYomaru avatar HananoshikaYomaru commented on June 9, 2024

For user defined scripts, I have already support templater. You can check the readme.

from obsidian-run.

StefanoRausch avatar StefanoRausch commented on June 9, 2024

Well, it is not about "fixing" your plugin. It is about complementing as much as possible.

You are already offering the integration with Dataview -- I have not checked how complete the integration is -- and partially with Templater. Why partially? See below:

%% run start

```js
return await tp.file.include("[[test.vim]]")
``` 

%%
Loading...
%% run end %%

I am trying to include a pure text note... as soon as an await call is necessary, your plugin "hangs". Please, don't get me wrong, I am only trying to show you the "rough" edges.

from obsidian-run.

HananoshikaYomaru avatar HananoshikaYomaru commented on June 9, 2024

OK. I think I understand why. Sorry I didn't elaborate clearly in the doc. That is not the problem of my plugin, that is the problem of templater. because templater tp which is the internal current_functions_object is undefined unless run once. Therefore you need to set the templater at least one startup template.

see more on: https://forum.obsidian.md/t/templater-api/59117/6?u=yomaru

This issue cannot fixed by me because I have look at this already before I added the templater integration. The initialization of current_functions_object is private and other plugins has no way to call it.

I will update the doc.

CleanShot.2023-10-05.at.20.45.00.mp4

from obsidian-run.

HananoshikaYomaru avatar HananoshikaYomaru commented on June 9, 2024

I updated the doc

CleanShot 2023-10-05 at 20 53 46@2x

from obsidian-run.

HananoshikaYomaru avatar HananoshikaYomaru commented on June 9, 2024

One thing I can assure that this plugin is Extremely complete. The reason why it is extremely complete is because how I write the code, I delegate the calculation to dataview and templater itself. If operation fails, it is not because of this plugin, it is because of the dataview and templater. The issues need to be opened in dataview and templater.

Obsidian Run at its core is a javascript running engine. As long as it is javascript is valid, it will be executed valid. There is no magic. And therefore it is robust.

from obsidian-run.

StefanoRausch avatar StefanoRausch commented on June 9, 2024

Noted.

I have Templater installed and active on all my devices, including one startup template, one folder template and two user scripts, which I use daily. One of my user scripts even checks and waits for Templater to be up and running before proceeding.

So all preconditions are met, but Run does not allow me to use await.

I will take some distance and maybe after a few days, I have a light bulb moment.

Keep up the good work!

from obsidian-run.

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.