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

Show run and debug Jbang codelenses only when there is a main class or a main directive specified #138

Open
apupier opened this issue Oct 2, 2024 · 2 comments

Comments

@apupier
Copy link

apupier commented Oct 2, 2024

it would be convenient to reduce the scope of when to display the run adn debug jbang to reduce potential failure at runtime when the file is not a JBang one.

It will avoid to detect Camel files as Jbang ones for instance (which are using the //DEPS notation similar to JBang):

//DEPS org.apache.commons:commons-math3:3.6.1

import org.apache.camel.builder.RouteBuilder;
import org.apache.commons.math3.util.ArithmeticUtils;

public class MyRouteBuilderWithAdditionalDependencies extends RouteBuilder{
	public void configure() {
		from("timer:timerName")
			.log("Hello with addition of 2 + 3 ="+ ArithmeticUtils.addAndCheck(2, 3));
    }
}
@fbricon
Copy link
Collaborator

fbricon commented Oct 2, 2024

need to push my changes ;-)

@maxandersen
Copy link

That isn't good. Quarkus and spring apps don't need main methods.

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

No branches or pull requests

3 participants