Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Produce informative message when lfc is run on non-LF files #919

Closed
lhstrh opened this issue Jan 31, 2022 · 0 comments · Fixed by #979
Closed

Produce informative message when lfc is run on non-LF files #919

lhstrh opened this issue Jan 31, 2022 · 0 comments · Fixed by #979
Labels
enhancement Enhancement of existing feature good first issue Good for newcomers lfc
Milestone

Comments

@lhstrh
Copy link
Member

lhstrh commented Jan 31, 2022

lfc: fatal error: An unexpected error occurred:
java.lang.RuntimeException: Cannot create a resource for 'file:/home/marten/lingua-franca-master/git/lingua-franca/org.lflang.ui/src/org/lflang/ui/wizard/templates/.'; a registered resource factory is needed
	at org.eclipse.xtext.resource.XtextResourceSet.getResource(XtextResourceSet.java:263)
	at org.eclipse.xtext.resource.SynchronizedXtextResourceSet.getResource(SynchronizedXtextResourceSet.java:25)
	at org.lflang.lfc.Main.getResource(Main.java:346)
	at org.lflang.lfc.Main.getValidatedResource(Main.java:320)
	at org.lflang.lfc.Main.runGenerator(Main.java:271)
	at org.lflang.lfc.Main.main(Main.java:209)
lfc: fatal error: An unexpected error occurred:
java.lang.RuntimeException: Cannot create a resource for 'file:/home/marten/lingua-franca-master/git/lingua-franca/org.lflang.ui/src/org/lflang/ui/wizard/templates/./c'; a registered resource factory is needed
	at org.eclipse.xtext.resource.XtextResourceSet.getResource(XtextResourceSet.java:263)
	at org.eclipse.xtext.resource.SynchronizedXtextResourceSet.getResource(SynchronizedXtextResourceSet.java:25)
	at org.lflang.lfc.Main.getResource(Main.java:346)
	at org.lflang.lfc.Main.getValidatedResource(Main.java:320)
	at org.lflang.lfc.Main.runGenerator(Main.java:271)
	at org.lflang.lfc.Main.main(Main.java:209)
^C
@cmnrd cmnrd added this to the 0.1.0 milestone Feb 4, 2022
@cmnrd cmnrd added enhancement Enhancement of existing feature lfc good first issue Good for newcomers labels Feb 4, 2022
@lhstrh lhstrh changed the title Running lfc on non-LF files results in uninformative error messages Produce informative message when lfc is run on non-LF files Mar 17, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement Enhancement of existing feature good first issue Good for newcomers lfc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants