datalad / datalad-gooey

A graphical user interface for DataLad (datalad.org)
https://docs.datalad.org/projects/gooey
Other
4 stars 6 forks source link

Saving a file in a dataset (with gooey) does not trigger reannotation #338

Closed mih closed 1 year ago

mih commented 1 year ago

The file remains untracked, until a manual refresh

mih commented 1 year ago

On first attempt, this behavior does not replicate (in the very same dataset).

Update: I tried to retrace the steps I made in the initial exploration, but it always works. I suspect that there is some glitch that causes a seemingly unrelated operation to lead to this behavior. But it is not anyhow obvious.

I'd say that the best course of action here is to further work on de-complexifying the behavior (e.g. https://github.com/datalad/datalad-gooey/issues/50), but there is nothing that needs doing specifically for this issue and right now. Closing.

jsheunis commented 1 year ago

I tried this now on my mac using current main, and I can't replicate, but I do get a different error:


status(error): ../Data/ccc/testy.txt [path not underneath the reference dataset /Users/jsheunis/Documents/psyinf/datalad-gooey-jsh]
action summary:
  save (notneeded: 1)
  status (error: 1)
Traceback (most recent call last): File "/Users/jsheunis/Documents/psyinf/datalad-gooey-jsh/datalad_gooey/dataladcmd_exec.py", line 138, in _cmdexec_thread for res in cmd(**cmdkwargs): File "/Users/jsheunis/opt/miniconda3/envs/meow2/lib/python3.9/site-packages/datalad/interface/utils.py", line 424, in generator_func raise IncompleteResultsError( datalad.support.exceptions.IncompleteResultsError: Command did not complete successfully. 1 failed: [{'action': 'status', 'message': ('path not underneath the reference dataset %s', '/Users/jsheunis/Documents/psyinf/datalad-gooey-jsh'), 'path': '/Users/jsheunis/Documents/psyinf/Data/ccc/testy.txt', 'refds': '/Users/jsheunis/Documents/psyinf/datalad-gooey-jsh', 'status': 'error'}] 

I'm not sure why it sees /Users/jsheunis/Documents/psyinf/datalad-gooey-jsh as a reference dataset? I started the gooey from that location, but with this command:

datalad gooey -p ~/Documents/psyinf/Data/
mih commented 1 year ago

@jsheunis please file that as a separate issue.

jsheunis commented 1 year ago

👍 https://github.com/datalad/datalad-gooey/issues/347