sharwell / zgrnbviewer

NetBeans integration of ZGRViewer
3 stars 3 forks source link

.dot or .gv files do not open with double click in NetBeans 7.3.1 #1

Open sheershoff opened 10 years ago

sheershoff commented 10 years ago

Thank you very much for the plugin.

Are there plans to upgrade it so it could work with NetBeans 7.3.1?

sharwell commented 10 years ago

Do you have any more details (screenshots, description of broken behavior)?

sheershoff commented 10 years ago

http://clip2net.com/s/5uMZYT - with the plugin turned off I can open the document and see the text. No 'view', as expected.

Then I activate the plugin and .dot file closes. http://clip2net.com/s/5uN3lZ

Double clicking the .dot files does nothing but selecting them in the file tree. They do not open. On right click the only thing I see is http://clip2net.com/s/5uNjSj .

Product Version: NetBeans IDE 7.3.1 (Build 201306052037) Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b17 System: Windows 7 version 6.1 running on amd64; UTF-8; en_us (nb) User directory: C:\Users\sheershoff\AppData\Roaming\NetBeans\7.3.1 Cache directory: C:\Users\sheershoff\AppData\Local\NetBeans\Cache\7.3.1

Config is the following: http://clip2net.com/s/5uNmgi and http://clip2net.com/s/5uNnm9 . All executables are on the PATH.

Uninstalling plugin, restarting IDE, installing plugin and restarting IDE doesn't help.

Is there anything I can do? Running in debug/logging mode? I'm not familiar with java and netbeans plugins development. :-)

sheershoff commented 10 years ago

Some lines from IDE log that contain 'zgr', 'jcip' and 'timing':

... WARNING [org.openide.filesystems.Ordering]: Not all children in Services/MIMEResolver/ marked with the position attribute: [org-tvl-netbeans-zgrviewer-GraphVizDataObject-Extension.xml], but some are: [org-openide-loaders-DataLoaderPool$InstanceLoaderSystem-Extension.xml, org-netbeans-core-startup-layers-SystemFileSystem-Extension.xml, org-netbeans-modules-java-JavaDataObject-Extension.xml, org-netbeans-modules-java-ClassDataObject-Extension.xml, org-netbeans-modules-image-ImageDataObject-serialVersionUID-Extension.xml, org-netbeans-modules-image-ImageDataObject-IMAGE_ICON_BASE-Extension.xml, org-netbeans-modules-image-ImageDataObject-openSupport-Extension.xml, org-netbeans-modules-image-ImageDataObject-printSupport-Extension.xml, org-netbeans-modules-javascript-jstestdriver-JSTestDriverSupport-Registration.xml, org-netbeans-modules-properties-PropertiesDataObject-Extension.xml, org-netbeans-modules-php-twig-editor-TwigDataObject-Extension.xml, org-netbeans-modules-languages-manifest-MfDataObject-Extension.xml, org-netbeans-modules-languages-apacheconf-ApacheConfDataObject-Registration.xml, org-netbeans-modules-languages-ini-IniDataObject-Extension.xml, org-netbeans-modules-languages-neon-NeonDataObject-Extension.xml, org-netbeans-modules-form-FormDataLoader-Extension.xml, org-netbeans-modules-cnd-loaders-CMakeDataObject-Registration.xml, org-netbeans-modules-cnd-script-loaders-ShellDataObject-Registration.xml, org-netbeans-modules-cnd-makefile-loaders-MakefileDataObject-Registration.xml, org-netbeans-core-ide-ServiceTabProcessor-Extension.xml, org-netbeans-modules-testng-TestNGSuiteDataObject-Registration.xml, org-netbeans-modules-css-editor-CssProjectSupport-Extension.xml, org-netbeans-modules-languages-diff-DiffDataObject-Extension.xml, org-netbeans-modules-javascript2-editor-JsLanguage-createMultiViewEditorElement-Extension.xml, org-netbeans-modules-javascript2-editor-JsonLanguage-createMultiViewEditorElement-Extension.xml, org-netbeans-modules-db-sql-loader-SQLDataObject-Extension.xml, org-netbeans-modules-javawebstart-JnlpDataObject-Extension.xml, org-netbeans-modules-cnd-source-CDataObject-Registration.xml, org-netbeans-modules-cnd-loaders-CMakeIncludeDataObject-Registration.xml, org-netbeans-modules-cnd-source-CCDataObject-Registration.xml, org-netbeans-modules-cnd-source-HDataObject-Registration.xml, org-netbeans-modules-cnd-loaders-QtProjectDataObject-Registration.xml, org-netbeans-modules-cnd-source-FortranDataObject-Registration.xml, org-netbeans-modules-j2ee-persistence-unit-PUDataObject-Registration.xml, org-netbeans-modules-mobility-svgcore-palette-SVGPaletteItemDataObject-Extension.xml, org-netbeans-modules-groovy-gsp-loaders-GspDataObject-Extension.xml, org-netbeans-modules-mobility-svgcore-SVGDataObject-Extension.xml, org-netbeans-modules-javacard-ri-card-CardProperties-Extension.xml, org-netbeans-modules-javacard-ri-card-CardProperties-DEBUG-Extension.xml, org-netbeans-modules-languages-yaml-YamlLanguage-Extension.xml, org-netbeans-modules-groovy-editor-api-parser-GroovyLanguage-Extension.xml, org-netbeans-modules-php-editor-index-PHPIndexer-INDEXABLE_EXTENSIONS-Extension.xml, org-netbeans-modules-html-HtmlDataObject-Registration.xml, org-netbeans-modules-maven-grammar-POMDataObject-Registration.xml, org-apache-tools-ant-module-loader-AntProjectDataObject-Registration.xml, org-netbeans-modules-apisupport-project-layers-LayerDataObject-Namespace.xml, org-netbeans-modules-editor-settings-storage-SettingsProvider-Registration.xml, org-netbeans-modules-j2ee-ddloaders-common-DD2beansDataObject-Registration.xml, org-netbeans-modules-j2ee-sun-ddloaders-SunDescriptorDataObject-Registration.xml, org-netbeans-modules-url-URLDataObject-Extension.xml, org-netbeans-modules-pdf-PDFDataObject-Extension.xml, org-netbeans-modules-php-smarty-editor-TplDataObject-Extension.xml, org-netbeans-modules-tomcat5-nodes-TomcatInstanceNode-createMultiViewEditorElement-Registration.xml, org-netbeans-modules-web-core-jsploader-JspDataObject-Registration.xml, org-netbeans-modules-web-jsf-JSFConfigDataObject-Registration.xml, org-netbeans-modules-web-struts-StrutsConfigDataObject-Namespace.xml, org-netbeans-modules-spring-beans-loader-SpringXMLConfigDataObject-Namespace.xml, org-netbeans-modules-xsl-XSLDataObject-Namespace.xml, org-netbeans-modules-cnd-asm-core-dataobjects-AsmDataObject-Extension.xml, org-netbeans-modules-cnd-source-CCDataObject-serialVersionUID-Registration.xml, org-netbeans-modules-java-jarloader-JarDataObject-Registration.xml, org-netbeans-modules-xml-jaxb-JAXBWizard-Extension.xml, org-netbeans-modules-cnd-loaders-ExeObject-Registration.xml, org-netbeans-lib-editor-codetemplates-storage-CodeTemplatesStorage-Namespace.xml, org-netbeans-modules-editor-macros-storage-MacrosStorage-Namespace.xml, org-netbeans-modules-php-composer-mimeresolver-ComposerLockFileRegistration-Registration.xml, org-netbeans-modules-j2ee-sun-ide-sunresources-resourcesloader-SunResourceDataObject-Extension.xml, org-netbeans-modules-profiler-oql-language-OQLLanguageProvider-Extension.xml, org-netbeans-modules-dbschema-jdbcimpl-DBschemaDataObject-Extension.xml, org-netbeans-modules-hibernate-loaders-cfg-HibernateCfgDataObject-Namespace.xml, org-netbeans-modules-hibernate-loaders-mapping-HibernateMappingDataObject-Namespace.xml, org-netbeans-modules-hibernate-loaders-reveng-HibernateRevengDataObject-Namespace.xml, org-netbeans-modules-hibernate-hqleditor-ui-HQLEditorTopComponent-Extension.xml, org-netbeans-modules-j2ee-persistence-jpqleditor-ui-JPQLEditorTopComponent-Extension.xml, org-netbeans-modules-profiler-snaptracer-impl-NpssDataObject-Registration.xml, org-netbeans-modules-java-hints-declarative-HintDataObject-Extension.xml, org-netbeans-modules-javacard-apdufile-ApduDataObject-Extension.xml, org-netbeans-modules-javafx2-editor-fxml-FXMLDataObject-Extension.xml, org-netbeans-modules-form-palette-PaletteItemDataObject-Extension.xml, org-netbeans-modules-xml-XMLDataObject-MIME_PLAIN_XML-Registration.xml, org-netbeans-modules-xml-DTDDataObject-Extension.xml, org-netbeans-modules-xml-EntityDataObject-Extension.xml, org-netbeans-modules-xml-XMLDataObject-MIME_XSD_XML-Registration.xml, org-netbeans-libs-freemarker-FreemarkerFactory-Registration.xml, org-netbeans-modules-apisupport-project-layers-LayerDataObject-Registration.xml, resources-Registration.xml, org-netbeans-modules-profiler-ui-NpsDataObject-Registration.xml, org-netbeans-modules-profiler-ui-HprofDataObject-Registration.xml, org-netbeans-modules-xml-XMLDataObject-Registration.xml, org-netbeans-modules-java-hints-declarative-test-DeclarativeHintsTestDataObject-Extension.xml]

WARNING [org.openide.filesystems.Ordering]: Not all children in Services/MIMEResolver/ marked with the position attribute: [org-tvl-netbeans-zgrviewer-GraphVizDataObject-Extension.xml], but some are: [org-openide-loaders-DataLoaderPool$InstanceLoaderSystem-Extension.xml, org-netbeans-core-startup-layers-SystemFileSystem-Extension.xml, org-netbeans-modules-java-JavaDataObject-Extension.xml, org-netbeans-modules-java-ClassDataObject-Extension.xml, org-netbeans-modules-image-ImageDataObject-serialVersionUID-Extension.xml, org-netbeans-modules-image-ImageDataObject-IMAGE_ICON_BASE-Extension.xml, org-netbeans-modules-image-ImageDataObject-openSupport-Extension.xml, org-netbeans-modules-image-ImageDataObject-printSupport-Extension.xml, org-netbeans-modules-javascript-jstestdriver-JSTestDriverSupport-Registration.xml, org-netbeans-modules-properties-PropertiesDataObject-Extension.xml, org-netbeans-modules-php-twig-editor-TwigDataObject-Extension.xml, org-netbeans-modules-languages-manifest-MfDataObject-Extension.xml, org-netbeans-modules-languages-apacheconf-ApacheConfDataObject-Registration.xml, org-netbeans-modules-languages-ini-IniDataObject-Extension.xml, org-netbeans-modules-languages-neon-NeonDataObject-Extension.xml, org-netbeans-modules-form-FormDataLoader-Extension.xml, org-netbeans-modules-cnd-loaders-CMakeDataObject-Registration.xml, org-netbeans-modules-cnd-script-loaders-ShellDataObject-Registration.xml, org-netbeans-modules-cnd-makefile-loaders-MakefileDataObject-Registration.xml, org-netbeans-core-ide-ServiceTabProcessor-Extension.xml, org-netbeans-modules-testng-TestNGSuiteDataObject-Registration.xml, org-netbeans-modules-css-editor-CssProjectSupport-Extension.xml, org-netbeans-modules-languages-diff-DiffDataObject-Extension.xml, org-netbeans-modules-javascript2-editor-JsLanguage-createMultiViewEditorElement-Extension.xml, org-netbeans-modules-javascript2-editor-JsonLanguage-createMultiViewEditorElement-Extension.xml, org-netbeans-modules-db-sql-loader-SQLDataObject-Extension.xml, org-netbeans-modules-javawebstart-JnlpDataObject-Extension.xml, org-netbeans-modules-cnd-source-CDataObject-Registration.xml, org-netbeans-modules-cnd-loaders-CMakeIncludeDataObject-Registration.xml, org-netbeans-modules-cnd-source-CCDataObject-Registration.xml, org-netbeans-modules-cnd-source-HDataObject-Registration.xml, org-netbeans-modules-cnd-loaders-QtProjectDataObject-Registration.xml, org-netbeans-modules-cnd-source-FortranDataObject-Registration.xml, org-netbeans-modules-j2ee-persistence-unit-PUDataObject-Registration.xml, org-netbeans-modules-mobility-svgcore-palette-SVGPaletteItemDataObject-Extension.xml, org-netbeans-modules-groovy-gsp-loaders-GspDataObject-Extension.xml, org-netbeans-modules-mobility-svgcore-SVGDataObject-Extension.xml, org-netbeans-modules-javacard-ri-card-CardProperties-Extension.xml, org-netbeans-modules-javacard-ri-card-CardProperties-DEBUG-Extension.xml, org-netbeans-modules-languages-yaml-YamlLanguage-Extension.xml, org-netbeans-modules-groovy-editor-api-parser-GroovyLanguage-Extension.xml, org-netbeans-modules-php-editor-index-PHPIndexer-INDEXABLE_EXTENSIONS-Extension.xml, org-netbeans-modules-html-HtmlDataObject-Registration.xml, org-netbeans-modules-maven-grammar-POMDataObject-Registration.xml, org-apache-tools-ant-module-loader-AntProjectDataObject-Registration.xml, org-netbeans-modules-apisupport-project-layers-LayerDataObject-Namespace.xml, org-netbeans-modules-editor-settings-storage-SettingsProvider-Registration.xml, org-netbeans-modules-j2ee-ddloaders-common-DD2beansDataObject-Registration.xml, org-netbeans-modules-j2ee-sun-ddloaders-SunDescriptorDataObject-Registration.xml, org-netbeans-modules-url-URLDataObject-Extension.xml, org-netbeans-modules-pdf-PDFDataObject-Extension.xml, org-netbeans-modules-php-smarty-editor-TplDataObject-Extension.xml, org-netbeans-modules-tomcat5-nodes-TomcatInstanceNode-createMultiViewEditorElement-Registration.xml, org-netbeans-modules-web-core-jsploader-JspDataObject-Registration.xml, org-netbeans-modules-web-jsf-JSFConfigDataObject-Registration.xml, org-netbeans-modules-web-struts-StrutsConfigDataObject-Namespace.xml, org-netbeans-modules-spring-beans-loader-SpringXMLConfigDataObject-Namespace.xml, org-netbeans-modules-xsl-XSLDataObject-Namespace.xml, org-netbeans-modules-cnd-asm-core-dataobjects-AsmDataObject-Extension.xml, org-netbeans-modules-cnd-source-CCDataObject-serialVersionUID-Registration.xml, org-netbeans-modules-java-jarloader-JarDataObject-Registration.xml, org-netbeans-modules-xml-jaxb-JAXBWizard-Extension.xml, org-netbeans-modules-cnd-loaders-ExeObject-Registration.xml, org-netbeans-lib-editor-codetemplates-storage-CodeTemplatesStorage-Namespace.xml, org-netbeans-modules-editor-macros-storage-MacrosStorage-Namespace.xml, org-netbeans-modules-php-composer-mimeresolver-ComposerLockFileRegistration-Registration.xml, org-netbeans-modules-j2ee-sun-ide-sunresources-resourcesloader-SunResourceDataObject-Extension.xml, org-netbeans-modules-profiler-oql-language-OQLLanguageProvider-Extension.xml, org-netbeans-modules-dbschema-jdbcimpl-DBschemaDataObject-Extension.xml, org-netbeans-modules-hibernate-loaders-cfg-HibernateCfgDataObject-Namespace.xml, org-netbeans-modules-hibernate-loaders-mapping-HibernateMappingDataObject-Namespace.xml, org-netbeans-modules-hibernate-loaders-reveng-HibernateRevengDataObject-Namespace.xml, org-netbeans-modules-hibernate-hqleditor-ui-HQLEditorTopComponent-Extension.xml, org-netbeans-modules-j2ee-persistence-jpqleditor-ui-JPQLEditorTopComponent-Extension.xml, org-netbeans-modules-profiler-snaptracer-impl-NpssDataObject-Registration.xml, org-netbeans-modules-java-hints-declarative-HintDataObject-Extension.xml, org-netbeans-modules-javacard-apdufile-ApduDataObject-Extension.xml, org-netbeans-modules-javafx2-editor-fxml-FXMLDataObject-Extension.xml, org-netbeans-modules-form-palette-PaletteItemDataObject-Extension.xml, org-netbeans-modules-xml-XMLDataObject-MIME_PLAIN_XML-Registration.xml, org-netbeans-modules-xml-DTDDataObject-Extension.xml, org-netbeans-modules-xml-EntityDataObject-Extension.xml, org-netbeans-modules-xml-XMLDataObject-MIME_XSD_XML-Registration.xml, org-netbeans-libs-freemarker-FreemarkerFactory-Registration.xml, org-netbeans-modules-apisupport-project-layers-LayerDataObject-Registration.xml, resources-Registration.xml, org-netbeans-modules-profiler-ui-NpsDataObject-Registration.xml, org-netbeans-modules-profiler-ui-HprofDataObject-Registration.xml, org-netbeans-modules-xml-XMLDataObject-Registration.xml, org-netbeans-modules-java-hints-declarative-test-DeclarativeHintsTestDataObject-Extension.xml]

...

INFO [org.netbeans.core.startup.NbEvents]: Turning on modules: ... org.jdesktop.animation.timing [1.0 130107] net.jcip.annotations [1.0 130107] ... org.tvl.netbeans.zgrviewer [1.0.0 130107] ...

sharwell commented 10 years ago

Thank for the update. Before you continue, you should update the path to dot in the configuration dialog. dot (dot.exe on Windows) probably isn't in your system path. On Windows you'll want to install GraphViz and then explicitly set the path to dot.exe.

Can you try the following to help narrow down the problem? This may be a bug in the way I've configured the Projects tool pane to open .dot files in NetBeans.

  1. Close all NetBeans editor windows.
  2. Click on the .dot file in Windows Explorer (outside of NetBeans), and drag the file over the NetBeans window onto the area where an editor would be.

If this works, you should know that you can still use it as a workaround while other editors are open, but you may have to drag the file onto the tabs bar at the top of the editor area (where all the file names are listed).

sheershoff commented 10 years ago

Thank you for the answer.

GraphViz were installed and binaries were on the system path. Nevertheless I've updated the config to full path. Tried to dnd the file from the windows explorer onto netbeans and it opened.

Then I set the paths in the config to the previous state. Still works.

Also found it works dragging files from Projects or Files NetBeans windows onto the editor's tab line.

Thank you a lot. This is a workaround one can live with. :-)

So, just double clicking a file in projects or files is broken in 7.3.1 with my configuration.