Skip to content

Compatibility with Maven projects (ceylon-maven-plugin)? #10

@negora

Description

@negora

exception.log
Hello:

When I open a Maven project that uses the ceylon-maven-plugin, NetBeans throws the following exception (I've attached the full stack trace at the top of this report):

ceylon.language.AssertionError "Assertion failed
	violated is NbCeylonProject _p = projects.getProject(project)
		expression has type ceylon.language::null which is not a subtype of com.redhat.ceylon.ide.netbeans.model::NbCeylonProject"

I guess that it's because the ceylon-ide-netbeans plug-in doesn't recognize this project as an authentic Ceylon project.

Would it be complicated/risky to enable the features of your plug-in with Maven projects, provided that they also contain a .ceylon directory? Would this feature qualify them as true Ceylon projects? I've tried to add a .ceylon/config file, but the plug-in still throws the error. What does the plug-in use for the detection?

There's a TypeScript plug-in for NetBeans, called nbts, that uses the existence of a tsconfig.json file as a sign that the project contains TypeScript files, and that it must analyse them. This allows the usage of TypeScript code in other type of projects, such as ones of Java/Maven or HTML5. Maybe the Ceylon plug-in could do something similar? Taking into account that ceylon-maven-plugin is able to keep the Maven and Ceylon descriptors in synchronization, Would it be a plausible idea?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions