google-code-export / scion-lib

Automatically exported from code.google.com/p/scion-lib
1 stars 0 forks source link

Cannot handle multiple concurrent projects #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It happens all the time that I'm working on several cabal projects
concurrently, and the scion mode in Emacs has a novel failure mode when I
try to use it in this situation:

Error in process filter: (wrong-type-argument listp file
/home/bos/src/darcs/criterion/Criterion.hs is not relative to project root
/home/bos/src/darcs/statistics)

Unfortunately, between this issue and issue 36, I can't really use scion at
all :-(

Original issue reported on code.google.com by bos31...@gmail.com on 25 Sep 2009 at 4:57

GoogleCodeExporter commented 9 years ago
This is high on my priority list.  Do you have any suggestions about what to do 
if a
file is part of multiple open projects?  

E.g., Scion has a server and a library, and the server includes most if not all 
files
that are part of the library.  I believe there are more projects out there with 
this
kind of structure.

Original comment by nomin...@googlemail.com on 2 Nov 2009 at 7:31

GoogleCodeExporter commented 9 years ago
I see the same thing in Eclipse. I wonder if you have already found a solution 
for the 
problem. 

Unfortunately, I don't understand very well how scion works, but would it be 
possible 
to allow scion to operate in two different modes and have a parameter that 
controls 
this? 

Original comment by mreza...@gmail.com on 3 Nov 2009 at 5:18

GoogleCodeExporter commented 9 years ago
The easiest way around the "file is part of multiple projects" issue would be 
"don't support it": split scion into two cabal projects, and have the 
executable depend on the library.  This would also frankly make the code easier 
to understand, and faster to compile :-)

However, I don't really know what to do to fix the real problem. Does the 
server support multiple sessions? Do we want to run multiple servers, with one 
session per Cabal project?

Original comment by bos31...@gmail.com on 4 Oct 2010 at 6:33