DeepPhe / DeepPhe-Release

Public release of the DeepPhe analytic software
Other
30 stars 10 forks source link

Build errors within Intellij #10

Closed savo0014 closed 6 years ago

savo0014 commented 6 years ago

Getting errors when building within Intellij C:\work\DeepPhe-Release\deepphe-ctakes-cancer\src\main\java\org\apache\ctakes\cancer\episode\EvaluationOfDocumentLevelEpisodeLabel.java Error:Error:line (14)java: package org.apache.ctakes.cancer.type.textspan does not exist C:\work\DeepPhe-Release\deepphe-ctakes-cancer\src\main\java\org\apache\ctakes\cancer\episode\EvaluationOfEpisode.java Error:Error:line (16)java: package org.apache.ctakes.cancer.type.textspan does not exist C:\work\DeepPhe-Release\deepphe-ctakes-cancer\src\main\java\org\apache\ctakes\cancer\ae\EpisodeFeatureExtractorAe.java Error:Error:line (18)java: package org.apache.ctakes.cancer.type.textspan does not exist C:\work\DeepPhe-Release\deepphe-ctakes-cancer\src\main\java\org\apache\ctakes\cancer\ae\EpisodicDocumentAe.java Error:Error:line (17)java: package org.apache.ctakes.cancer.type.textspan does not exist C:\work\DeepPhe-Release\deepphe-ctakes-cancer\src\main\java\org\apache\ctakes\cancer\episode\EvaluationOfDocumentLevelEpisodeLabelMela.java Error:Error:line (14)java: package org.apache.ctakes.cancer.type.textspan does not exist C:\work\DeepPhe-Release\deepphe-ctakes-cancer\src\main\java\org\apache\ctakes\cancer\ae\DocEpisodeTagger.java Error:Error:line (5)java: package org.apache.ctakes.cancer.type.textspan does not exist C:\work\DeepPhe-Release\deepphe-ctakes-cancer\src\main\java\org\apache\ctakes\cancer\ae\EpisodicDocumentAeMela.java Error:Error:line (16)java: package org.apache.ctakes.cancer.type.textspan does not exist C:\work\DeepPhe-Release\deepphe-ctakes-cancer\src\main\java\org\apache\ctakes\cancer\ae\EpisodeAnaforaXMLReader.java Error:Error:line (30)java: package org.apache.ctakes.cancer.type.textspan does not exist

yuanzhou commented 6 years ago

I compiled on Linux without using any IDE, and no error. Did you try to build in command line directly?

jamesmasanz commented 6 years ago

I'll try from within the IDE and post my observations

savo0014 commented 6 years ago

I am able to compile from the command line.

jamesmasanz commented 6 years ago

using IntelliJ Community Edition 2017.3, after checking out the code, and importing maven profiles, I see the runJcasGen checkbox is checked. I set the project SDK to 1.8 and then Run Maven Build on deepphe (root) Lifecycle compile, it builds successfully. I'll have to compare my steps to the documented ones.

image

savo0014 commented 6 years ago

this worked for me too, thank you, James! Before I ran the build from the Intellij dropdown (or Ctrl+F9). The GUI starts, it has three slots for parameter names -- input dir, output dir and domain. In the Quick Start manual, it says to expect: Input Directory (with Notes/Reports) Output Directory (for Summary files) Ontology Name (for non-default specification) Configuration Directory (for evaluation of results)

I don't see the last two in the GUI.

jamesmasanz commented 6 years ago

I updated the Quick-Start page with instructions on how to start a compile so that jcasgen runs before the GUI opens