jasonplatts / nova-todo

A Panic Nova extension for todo and fixme management.
https://extensions.panic.com/extensions/jasonplatts/jasonplatts.TODO/
MIT License
29 stars 7 forks source link

Unable to configure for Rails project #7

Closed ianbradbury-bizzibody closed 3 years ago

ianbradbury-bizzibody commented 4 years ago

I have a Rails project (v6 + Webacker)

I'm continually prompted that there are too many workspace files. I have attempted to "ignore" as many folder as possible yet I can not reduce the number fo files enough that this message goes away.

I now believe that I am formatting the list of ignore folders incorrectly, and/or, even in the wrong preference field.

eg: Ignored File and Directory paths /Users/ianbradbury/Documents/GitHub/at/vendors, /Users/ianbradbury/Documents/GitHub/at/tmp, /Users/ianbradbury/Documents/GitHub/at/test, /Users/ianbradbury/Documents/GitHub/at/storage, /Users/ianbradbury/Documents/GitHub/at/spec, /Users/ianbradbury/Documents/GitHub/at/public, /Users/ianbradbury/Documents/GitHub/at/node_modules, /Users/ianbradbury/Documents/GitHub/at/log, /Users/ianbradbury/Documents/GitHub/at/lib, /Users/ianbradbury/Documents/GitHub/at/db, /Users/ianbradbury/Documents/GitHub/at/config, /Users/ianbradbury/Documents/GitHub/at/bin,

I have duplicated this list into the Ignored File and Directory names to see if that is where I am supposed to add this detail.

I have added .tmp, .log to the list of file extensions to ignore.

When I view the ToDo pane I see the message "No profiles have ben created" and there are no TODO's listed.

I have added TODO tags in .rb and .erb files. None of the TODOs display - nothing displays - in the pane.

Example of how I am adding TODOs.

ERB file : <% #TODO: A todo %> RB file : #TODO: Add error checking around this save

Please advise - is there some secret checkbox I need to tick?

jasonplatts commented 4 years ago

Hi @ianbradbury-bizzibody. Thanks for reporting this problem.

From the information you provided, it appears you are doing things correctly. The paths look good. Adding a name in the "Ignore File and Directory Names" text box should ignore any file or directory with that name, regardless of its path. For example, you may have a tmp directory in multiple locations within a project. File extensions and TODO formatting also looks good.

Long story short, unfortunately, I don't have a quick fix for you. I'm not at all happy with the very innefficient way the extension is currently processing files and I am waiting for the next version of Nova to determine how best to address some of these problems. The file limit is a temporary bandaid to stop the extension from becoming non-responsive. Panic has told me that Nova 3.0 should be released shortly and I am expecting the revised API should provide a way to evaluate workspace files using glob patterns.

I will keep you posted as I work through this issue!

ianbradbury-bizzibody commented 3 years ago

Thanks @jasonplatts - I'll keep my checking for v3. Hopefully it's not too far away. Keep up the good work.