Skip to content
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

Can't fetch C# grammar with the .launch file #55

Closed
rcjsuen opened this issue Jul 21, 2017 · 3 comments
Closed

Can't fetch C# grammar with the .launch file #55

rcjsuen opened this issue Jul 21, 2017 · 3 comments
Labels

Comments

@rcjsuen
Copy link
Member

rcjsuen commented Jul 21, 2017

My C# editor wouldn't open because the grammar file couldn't be found so I tried to use Fetch Grammar.launch to fetch it but the launch configuration didn't complete.

[INFO] Scanning for projects...
[ERROR] Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.eclipse.acute:target-platform:target:0.1.0-SNAPSHOT -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.eclipse.acute:target-platform:target:0.1.0-SNAPSHOT
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:121)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.RuntimeException: Could not resolve target platform specification artifact org.eclipse.acute:target-platform:target:0.1.0-SNAPSHOT
	at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.addTargetArtifact(DefaultTargetPlatformConfigurationReader.java:389)
	at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.setTarget(DefaultTargetPlatformConfigurationReader.java:342)
	at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.getTargetPlatformConfiguration(DefaultTargetPlatformConfigurationReader.java:75)
	at org.eclipse.tycho.core.resolver.DefaultTychoResolver.setupProject(DefaultTychoResolver.java:87)
	at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:90)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:266)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	... 11 more
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException

Unfortunately, I couldn't figure out a way to rerun with -e or -X like the error message suggested. My org.eclipse.acute project has no compiler errors so I feel like my target platform is okay.

I do have two errors in my 'Problems' view but I'm not sure if they're relevant or not.

Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-clean-plugin:2.5:clean (execution: default-clean-1, phase: initialize)
pom.xml	/repository
line 9
Maven Project Build Lifecycle Mapping Problem

Plugin execution not covered by lifecycle configuration: org.eclipse.tycho:tycho-packaging-plugin:1.0.0:build-qualifier-aggregator (execution: default-build-qualifier-aggregator, phase: validate)
pom.xml	/repository
line 4
Maven Project Build Lifecycle Mapping Problem
@rcjsuen
Copy link
Member Author

rcjsuen commented Jul 21, 2017

I worked around the problem by downloading the csharp.tmLanguage file myself and throwing it in the org.eclipse.acute/grammar/ folder.

@mickaelistria
Copy link
Contributor

mickaelistria commented Jul 21, 2017 via email

mickaelistria added a commit that referenced this issue Jan 15, 2018
Single launch file to fetch all dependencies

Signed-off-by: Mickael Istria <mistria@redhat.com>
@mickaelistria
Copy link
Contributor

The .launch file was refactored to cover all deps at once, and simply runs a mvn clean verify -DskipTests -Djgit.dirtyWorkingTree=warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants