This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 240571 - package listed in jar dependency not recognized in editor
Summary: package listed in jar dependency not recognized in editor
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: 8.0_WAIVER_APPROVED
Depends on:
Blocks:
 
Reported: 2014-01-16 23:39 UTC by dao
Modified: 2014-05-02 12:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project (7.17 KB, application/x-zip-compressed)
2014-01-16 23:39 UTC, dao
Details
messages.log (114.80 KB, text/plain)
2014-01-17 17:09 UTC, dao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dao 2014-01-16 23:39:17 UTC
Created attachment 144057 [details]
Sample project

In the provided project the line

import com.wordnik.swagger.config.SwaggerConfig;

shows an error
Comment 1 Milos Kleint 2014-01-17 08:32:32 UTC
appears to work for me, please see screenshot (in latest dev builds) - http://screencast.com/t/Vz1MaNRDi52

please attach the IDE log file - http://wiki.netbeans.org/FaqLogMessagesFile

do you have scala modules installed? The affected class file appears to be scala based.

Also please attach the compilation classpath for the file with error (right click in projects view -> properties)

please reopen with additional information provided
Comment 2 dao 2014-01-17 17:08:56 UTC
(In reply to Milos Kleint from comment #1)
> appears to work for me, please see screenshot (in latest dev builds) -
> http://screencast.com/t/Vz1MaNRDi52
> 

Yes I grabbed the latest nightly build and it's working.

> please attach the IDE log file - http://wiki.netbeans.org/FaqLogMessagesFile
> 
> do you have scala modules installed? The affected class file appears to be
> scala based.

Yes the dependency is a scala project and I don't have the scala plugin installed.

> 
> Also please attach the compilation classpath for the file with error (right
> click in projects view -> properties)
> 

I will attach the log file for reference but don't know where to find the "compilation classpath" in the project properties.

> please reopen with additional information provided

I guess no need to reopen as it seems resolved.
Comment 3 dao 2014-01-17 17:09:53 UTC
Created attachment 144087 [details]
messages.log
Comment 4 Milos Kleint 2014-01-17 17:21:10 UTC
(In reply to dao from comment #2)

> > 
> > Also please attach the compilation classpath for the file with error (right
> > click in projects view -> properties)
> > 
> 
> I will attach the log file for reference but don't know where to find the
> "compilation classpath" in the project properties.
> 

not project properties but the file's properties
Comment 5 dao 2014-01-17 17:29:33 UTC
(In reply to Milos Kleint from comment #4)
> (In reply to dao from comment #2)
> 
> > > 
> > > Also please attach the compilation classpath for the file with error (right
> > > click in projects view -> properties)
> > > 
> > 
> > I will attach the log file for reference but don't know where to find the
> > "compilation classpath" in the project properties.
> > 
> 
> not project properties but the file's properties

C:\Users\Dao\.m2\repository\com\wordnik\swagger-jaxrs_2.10\1.3.1\swagger-jaxrs_2.10-1.3.1.jar;C:\Users\Dao\.m2\repository\org\scala-lang\scala-library\2.10.0\scala-library-2.10.0.jar;C:\Users\Dao\.m2\repository\com\wordnik\swagger-core_2.10\1.3.1\swagger-core_2.10-1.3.1.jar;C:\Users\Dao\.m2\repository\commons-lang\commons-lang\2.4\commons-lang-2.4.jar;C:\Users\Dao\.m2\repository\org\slf4j\slf4j-api\1.6.3\slf4j-api-1.6.3.jar;C:\Users\Dao\.m2\repository\com\fasterxml\jackson\module\jackson-module-scala_2.10\2.1.5\jackson-module-scala_2.10-2.1.5.jar;C:\Users\Dao\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.1.5\jackson-core-2.1.5.jar;C:\Users\Dao\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.1.5\jackson-databind-2.1.5.jar;C:\Users\Dao\.m2\repository\com\thoughtworks\paranamer\paranamer\2.3\paranamer-2.3.jar;C:\Users\Dao\.m2\repository\org\scala-lang\scala-reflect\2.10.0\scala-reflect-2.10.0.jar;C:\Users\Dao\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.1.5\jackson-annotations-2.1.5.jar;C:\Users\Dao\.m2\repository\com\fasterxml\jackson\module\jackson-module-jsonSchema\2.1.0\jackson-module-jsonSchema-2.1.0.jar;C:\Users\Dao\.m2\repository\com\fasterxml\jackson\jaxrs\jackson-jaxrs-json-provider\2.0.0\jackson-jaxrs-json-provider-2.0.0.jar;C:\Users\Dao\.m2\repository\com\fasterxml\jackson\module\jackson-module-jaxb-annotations\2.0.0\jackson-module-jaxb-annotations-2.0.0.jar;C:\Users\Dao\.m2\repository\com\wordnik\swagger-annotations\1.3.1\swagger-annotations-1.3.1.jar;C:\Users\Dao\.m2\repository\org\json4s\json4s-ext_2.10\3.2.4\json4s-ext_2.10-3.2.4.jar;C:\Users\Dao\.m2\repository\joda-time\joda-time\2.1\joda-time-2.1.jar;C:\Users\Dao\.m2\repository\org\joda\joda-convert\1.2\joda-convert-1.2.jar;C:\Users\Dao\.m2\repository\org\json4s\json4s-native_2.10\3.2.4\json4s-native_2.10-3.2.4.jar;C:\Users\Dao\.m2\repository\org\json4s\json4s-core_2.10\3.2.4\json4s-core_2.10-3.2.4.jar;C:\Users\Dao\.m2\repository\org\json4s\json4s-ast_2.10\3.2.4\json4s-ast_2.10-3.2.4.jar;C:\Users\Dao\.m2\repository\org\scala-lang\scalap\2.10.0\scalap-2.10.0.jar;C:\Users\Dao\.m2\repository\org\scala-lang\scala-compiler\2.10.0\scala-compiler-2.10.0.jar;C:\Users\Dao\.m2\repository\org\json4s\json4s-jackson_2.10\3.2.4\json4s-jackson_2.10-3.2.4.jar;C:\Users\Dao\.m2\repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;C:\Users\Dao\.m2\repository\org\reflections\reflections\0.9.8\reflections-0.9.8.jar;C:\Users\Dao\.m2\repository\com\google\guava\guava\11.0.2\guava-11.0.2.jar;C:\Users\Dao\.m2\repository\com\google\code\findbugs\jsr305\1.3.9\jsr305-1.3.9.jar;C:\Users\Dao\.m2\repository\javassist\javassist\3.12.1.GA\javassist-3.12.1.GA.jar;C:\Users\Dao\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;C:\Users\Dao\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;C:\Users\Dao\.m2\repository\javax\javaee-web-api\7.0\javaee-web-api-7.0.jar
Comment 6 Milos Kleint 2014-01-20 07:47:03 UTC
C:\Users\Dao\.m2\repository\com\wordnik\swagger-core_2.10\1.3.1\swagger-core_2.10-1.3.1.jar is present on classpath, nothing appears to be wrong with maven project type classpath construction, reassigning to java for evaluation
Comment 7 dao 2014-02-02 18:45:13 UTC
Something is really wired with this bug. After disappearing in nightly builds it reappeared since 20140130 build.
Comment 8 Tomas Zezula 2014-02-18 09:50:58 UTC
Nothing to do with classpath module (displayed in properties).
Comment 9 Svata Dedic 2014-05-02 12:25:28 UTC
Sorry, I've tried the project in both current dev version and the released 8.0 (build 201403101706) and error did not show up.