Code Monkey home page Code Monkey logo

Comments (14)

ouboub avatar ouboub commented on June 15, 2024 1

from org-remark.

nobiot avatar nobiot commented on June 15, 2024

Thank you. I will look. Can I assume you are on the dev/nov.el branch?

from org-remark.

ouboub avatar ouboub commented on June 15, 2024

Thank you. I will look. Can I assume you are on the dev/nov.el branch?

yes definetly I just checked

from org-remark.

nobiot avatar nobiot commented on June 15, 2024

Trying to reproduce the error but I cannot. I am using “marginalia.org” with other highlights, as your error indicates that’s how you use it.

It is saying Org-remark is trying to narrow a headline before the first headline. What does your maeginalia.org look like before thr first headline?

from org-remark.

ouboub avatar ouboub commented on June 15, 2024

Trying to reproduce the error but I cannot. I am using “marginalia.org” with other highlights, as your error indicates that’s how you use it.

It is saying Org-remark is trying to narrow a headline before the first headline. What does your maeginalia.org look like before thr first headline?

there is no marginalina.org file generated in this case, this is the problem

from org-remark.

nobiot avatar nobiot commented on June 15, 2024

there is no marginalina.org file generated in this case, this is the problem

I see. What is the value of org-remark-notes-file-name? (It’s a user option).

Where is the .sh file in your file system? Perhaps it is in a remote server and Org-remark fails to find the directory?

from org-remark.

ouboub avatar ouboub commented on June 15, 2024

there is no marginalina.org file generated in this case, this is the problem

I see. What is the value of org-remark-notes-file-name? (It’s a user option).

Where is the .sh file in your file system? Perhaps it is in a remote server and Org-remark fails to find the directory?

marginalia.org
I think I have to run some more tests and will report later. something is very odd here.

from org-remark.

nobiot avatar nobiot commented on June 15, 2024

marginalia.org
I think I have to run some more tests and will report later. something is very odd here

That’s the default value. At the moment, I cannot reproduce the issue when I have a .sh file in my local directory.

I assume this is not a regression introduced by the recent refactoring…

from org-remark.

ouboub avatar ouboub commented on June 15, 2024

from org-remark.

nobiot avatar nobiot commented on June 15, 2024

Thank you for the detail steps. I’ll try to reproduce the issue.

from org-remark.

nobiot avatar nobiot commented on June 15, 2024

However when I created a new empty directory and repeated the steps 2-4 above, I obtained the error I mentioned.

I tried this with a new, empty directory. I cannot reproduce the problem. I have no error, marginalia.org gets created, and the highlight gets saved to it, as you normally expect.

Just in case we have different source (I might have pushed some commits after you have pulled the branch), I merged the dev/nov.el branch with main. It will be available via GNU-devel ELPA overnight.

How do you normally update your packags? Via package.el? Do you normally use Git to do so?

If you normally use package.el, my suggestion is:

  • Wait until the GNU-devel gets updated with the new Org-remark commit
  • Use packge.el to update Org-remark in your normal way
  • Then test this issue again

Thank you for staying with me on this. It's a strange issue.

from org-remark.

ouboub avatar ouboub commented on June 15, 2024

from org-remark.

nobiot avatar nobiot commented on June 15, 2024

Looking at your error, I think the commit you use is slightly behind the latest. Could you please try the latest main and see if the problem persists please?

The reason why I think this is that the error should not happen i the current code. See this line. In your error stack, the function org-remark-new-headline is called with the first argument being number 1.

It is passed as the level variable in the function. In the line I quoted above, there is unless (= level 1). org-narrow-to-subtree() should never be called when level is 1, but that’s where your error occurs.

I added this unless conditional later than when I initially requested you to test the branch.

I think updating the codebaae to the latest main branch should resolve this issue for you.

from org-remark.

nobiot avatar nobiot commented on June 15, 2024

Mo problem! Thank you 🙏

from org-remark.

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.