Comments (5)
@dbalek Thanks for reporting.
Does the formatting work anyway? Which formatters are you using? Do you use the JSDT formatter for JavaScript files?
I'll have a look myself, but would be great if you could give some more information on this error.
Cheers,
Fabian
from externalcodeformatter_for_netbeans.
Does the formatting work anyway? Which formatters are you using? Do you use the JSDT formatter for JavaScript files?
Formatting seems to work fine (tested with the Eclipse Formatter on Java files). The exception appears in the log on every IDE startup during module loading (before any reformat action invocation). It seems like a possible clash between jar files distributed with the plugin and the jar files distributed by NetBeans itself?
from externalcodeformatter_for_netbeans.
@funfried, I confirm. On NetBeans startup, I have exactly the same message as @dbalek in the log file. I am using the plugin version 1.15.1 with NetBeans 14 under Ubuntu 18.04. The log file is here: $HOME/.netbeans/14/var/log/messages.log
.
from externalcodeformatter_for_netbeans.
Sorry for the late response.
I checked it for my self and found it as well in the log file at the very beginning of the log statements:
java.lang.ClassNotFoundException: org.eclipse.osgi.launch.EquinoxFactory@ModuleCL@1657fa27[de.funfried.netbeans.plugins.externalcodeformatter]:jar:file:/Users/fbahle/Library/Application%20Support/NetBeans/14/modules/ext/de.funfried.netbeans.plugins.externalcodeformatter/org-eclipse-platform/org.eclipse.osgi.jar!/ not a subclass of org.osgi.framework.launch.FrameworkFactory@ModuleCL@5192e598[org.netbeans.libs.osgi]:jar:file:/Applications/NetBeans/Apache%20NetBeans%2014.app/Contents/Resources/NetBeans/netbeans/platform/modules/ext/osgi.core-8.0.0.jar!/
[catch] at org.openide.util.lookup.MetaInfServicesLookup.search(MetaInfServicesLookup.java:325)
at org.openide.util.lookup.MetaInfServicesLookup.beforeLookup(MetaInfServicesLookup.java:132)
at org.openide.util.lookup.AbstractLookup.lookupItem(AbstractLookup.java:402)
at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:396)
at org.netbeans.core.netigso.Netigso.prepare(Netigso.java:136)
at org.netbeans.NetigsoHandle.turnOn(NetigsoHandle.java:115)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1445)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1254)
at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:316)
at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:252)
at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:298)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:173)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:142)
at org.netbeans.core.startup.Main.start(Main.java:299)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98)
at java.base/java.lang.Thread.run(Thread.java:833)
INFO [null]: Last record repeated again.
INFO [org.netbeans.modules.netbinox]: Install area set to file:/Applications/NetBeans/Apache NetBeans 14.app/Contents/Resources/NetBeans/netbeans/```
I'll look into it, actually, I think I already found the issue. I hope I can fix it soon.
Cheers,
Fabian
from externalcodeformatter_for_netbeans.
Hi @dbalek,
it took some time, but in the latest 1.15.2 SNAPSHOT version, it should be fixed. Would be great if you could confirm.
Thanks in advance.
Cheers,
Fabian
from externalcodeformatter_for_netbeans.
Related Issues (20)
- Override tab size in Eclipse formatter causes wrong code indentation
- Look to be a great tool! how does it works? HOT 2
- Cannot select workspace mechanic configuration file HOT 6
- Use a different version of google-java-format HOT 8
- Palantir formatter throws NoClassDefFound exception HOT 3
- Little typo
- Override Tab Size has no effect for Java HOT 9
- Formatting not applied when a .form file exists HOT 4
- Use indentation settings from external formatter has no effect for Java HOT 5
- Plugin isn't organizing Java Imports (Google Java Code Formatter/Code Style Google) HOT 5
- Bump JSQLFormatter to 1.0.0 HOT 6
- Add support for prettier.io
- NPE when using code templates HOT 7
- Support workspace mechanic source directories HOT 2
- GraalSDK distributed with externalcodeformatter may eventually clash with NB-distributed library and/or GraalVM JDK HOT 1
- Gradle Spotless Integration for Java Formatting? HOT 3
- Unexpected exception: Cannot invoke "java.util.Collection.toArray()" because "c" is null HOT 2
- Eclipse formatter settings format HOT 1
- NPE for HTML Completion HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from externalcodeformatter_for_netbeans.