Bug 446637 - Optionally warn if mwe2 files are filtered from bin/
Summary: Optionally warn if mwe2 files are filtered from bin/
Status: REOPENED
Alias: None
Product: EMFT
Classification: Modeling
Component: MWE (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows NT
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-10 08:40 EDT by Ed Willink CLA
Modified: 2014-10-10 09:31 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2014-10-10 08:40:28 EDT
This is partially a duplicate of Bug 378958 that diverted to other issues.

Use of a nested workflow such as:

Workflow {
	component = @GenerateLPG {
		syntaxName = "EssentialOCL"
		grammarPath = "platform:/resource/org.eclipse.ocl.examples.xtext.essentialocl/src/org/eclipse/ocl/examples/xtext/essentialocl/EssentialOCL.xtext"
		lpgExe = "${lpgExe}"
		lpgIncs = "${lpgIncs}"
		lpgOpts = "${lpgOpts}"
	}
...

works fine until the project build path is tidied up to exclude the copy of src/**/*.mwe2 to bin.

Workaround: live with the extra bin clutter.

Please ensure that *.mwe2's are resolved from the classpath src.
Comment 1 Sebastian Zarnekow CLA 2014-10-10 09:11:14 EDT
Referenced workflows are resolved from the classpath. There is no notion of src at runtime, thus I'll mark this as won't fix.
Comment 2 Ed Willink CLA 2014-10-10 09:19:57 EDT
Yes. Not a regression, started typing before a DUP appeared.

But if resolution is from the classpath why does the MWE editor successfully resolve them when they are only in the src folder? This is the really confusing thing. MWE2 editor works, run-time fails.

Maybe you want to reverse the bug into a missing MWE warning that the workflow is not on the classpath.
Comment 3 Sebastian Zarnekow CLA 2014-10-10 09:28:45 EDT
(In reply to Ed Willink from comment #2)
> Yes. Not a regression, started typing before a DUP appeared.
> 
> But if resolution is from the classpath why does the MWE editor successfully
> resolve them when they are only in the src folder?

For the same reasons Java source files are resolvable from a Java editor. But if you don't compile them (read: copy the runtime artifacts to bin), they are not available at runtime.

> This is the really
> confusing thing. MWE2 editor works, run-time fails.

Same thing would happen with disabled auto-build - which is an analogy to filtering mwe2 from the bin filder.

> 
> Maybe you want to reverse the bug into a missing MWE warning that the
> workflow is not on the classpath.

That's be an option.