I am running root on my Macbook Air with macOS 10.13.6.
I observe the following peculiar behavior when running macros in a directory on Dropbox, which I illustrate here with a trivial macro:
[Peters-MacBook-Air-3:~/Dropbox/tmp] pmjacobs% pwd
/Users/pmjacobs/Dropbox/tmp
[Peters-MacBook-Air-3:~/Dropbox/tmp] pmjacobs% cat aaa.C
void aaa(){
cout << "this is a test" << endl;
}
[Peters-MacBook-Air-3:~/Dropbox/tmp] pmjacobs% root
------------------------------------------------------------
| Welcome to ROOT 6.14/02 http://root.cern.ch |
| (c) 1995-2018, The ROOT Team |
| Built for macosx64 |
| From tags/v6-14-02@v6-14-02, Jul 27 2018, 10:56:25 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------
root [0] .x aaa.C
input_line_10:1:10: fatal error: '/Users/pmjacobs/Dropbox' file not found
#include "/Users/pmjacobs/Dropbox"
^~~~~~~~~~~~~~~~~~~~~~~~~
root [1] .q
[Peters-MacBook-Air-3:~/Dropbox/tmp] pmjacobs% root
------------------------------------------------------------
| Welcome to ROOT 6.14/02 http://root.cern.ch |
| (c) 1995-2018, The ROOT Team |
| Built for macosx64 |
| From tags/v6-14-02@v6-14-02, Jul 27 2018, 10:56:25 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------
root [0] .x /Users/pmjacobs/Dropbox/tmp/aaa.C
this is a test
root [1] .q
[Peters-MacBook-Air-3:~/Dropbox/tmp] pmjacobs%
Please advise why this happens and how to fix it. While a work-around is simple (as you can see), I would like to understand its origin in case it indicates a more significant issue with my installation.
Thank you,
Peter Jacobs