-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eclipse per-source folder output directory #293
Comments
#202 seems to be related |
@dragos I disliked the change too, but mostly because undocumented. From #202, it'd seem you want a cleaner variant of:
(with less hardcoded strings). @dragos, I think you can clean that up faster than me. |
Eclipse uses the same incremental compiler, so there's no reason why it shouldn't work. It probably won't work with I agree that changing the default without proper documentation is really bad practice... Thanks for the workaround. |
I've not seen it working, but I wasn't sure what to look for (and I like my But do Eclipse and SBT share the info used to compute which class files are up-to-date*? Without any locking? I'll see whether that works given enough refreshing. |
Yes, they save info in |
That's it! On most of my projects I don't use Eclipse, and SBT doesn't create |
This is still an issue for me. I have different configurations between my main and test source folders: src/[main/test]/resources/application.conf. Since sbteclipse is configuring all source folders to have the same output folder the test and main configurations are clobbering each other. Normally, you would have separate output folders for test and main. Is there a way to configure this? If so, I would think this is a common setup, so should be at least documented in the user guide, or the default behavior. |
@craigjar Your desire might be common, but I see few people bothering to set up eclipseOutput. One reason might be that conflicts are less common, so few people HAVE to configure it. If that snippet doesn't work as is: That might need updating, see docs for configuration of this plugin regarding eclipseOutput, or (worst case) other issues, in particular from me. On mobile and rush, sorry I can't recheck details. And yes, better or more prominent docs might be needed, but time is scarce and I'm afraid you're in the best position |
Sorry, finishing: you're likely in a good position to contribute docs that would have you'd have found, in the sense that you know where you'd have expected the info. Makes sense? |
I've had a similar problem lately, and the EclipseKeys.eclipseOutput advice here was great. Unfortunately, I'm still running into classpath clobbering within Scala-IDE (eclipse) itself. I'm guessing it's actually a bug in Eclipse so I've updated this ticket: https://scala-ide-portfolio.assembla.com/spaces/scala-ide/support/tickets/1002863 Basically, while classes and testClasses are output to separate areas, running my application still includes both test and non-test classes in the classpath. Anything marked with Test scope (or output to test-classes) will be in the runtime classpath when executing "Run As..." a Scala Application. I'm using Scale IDE 4.6.0-RC1 with support for scala 2.12 |
A while ago sbt-eclipse used to use the
target/
output directory, just like maven and Sbt. I like that behavior and I want it back. How can I do that? I can't find any setting that would make each source folder go to the right directory undertarget/
The text was updated successfully, but these errors were encountered: