Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Problem with Photran 4.0 beta 5

Jeff,

I'm not sure if this is the correct fix, but it seems to stop the NPE for me.

Regards,

Hreh

### Eclipse Workspace Patch 1.0
#P org.eclipse.photran.ui
Index: src/org/eclipse/photran/internal/ui/editor/ AbstractFortranEditor.java
===================================================================
RCS file: /cvsroot/technology/org.eclipse.photran/ org.eclipse.photran.ui/src/org/eclipse/photran/internal/ui/editor/ AbstractFortranEditor.java,v
retrieving revision 1.22
diff -u -r1.22 AbstractFortranEditor.java
--- src/org/eclipse/photran/internal/ui/editor/ AbstractFortranEditor.java 11 Feb 2009 18:00:52 -0000 1.22 +++ src/org/eclipse/photran/internal/ui/editor/ AbstractFortranEditor.java 3 Apr 2009 20:18:48 -0000
@@ -17,11 +17,11 @@
 import org.eclipse.cdt.core.model.IWorkingCopy;
 import org.eclipse.cdt.internal.ui.actions.SelectionConverter;
 import org.eclipse.cdt.internal.ui.editor.CContentOutlinePage;
+import org.eclipse.cdt.internal.ui.editor.CEditor;
 import org.eclipse.cdt.internal.ui.editor.CEditorMessages;
 import org.eclipse.cdt.internal.ui.editor.ICEditorActionDefinitionIds;
 import org.eclipse.cdt.internal.ui.text.CCompositeReconcilingStrategy;
 import org.eclipse.cdt.internal.ui.text.CReconciler;
-import org.eclipse.cdt.internal.ui.text.CReconcilingStrategy;
 import org.eclipse.cdt.ui.CUIPlugin;
 import org.eclipse.cdt.ui.IWorkingCopyManager;
 import org.eclipse.core.resources.IFile;
@@ -442,7 +442,7 @@
 	 */
 	public CContentOutlinePage getOutlinePage() {
 		if (fOutlinePage == null) {
-			fOutlinePage = new CContentOutlinePage(null);
+			fOutlinePage = new CContentOutlinePage(new CEditor());
 			fOutlinePage.addSelectionChangedListener(this);
 		}
 		setOutlinePageInput(fOutlinePage, getEditorInput());


On Apr 2, 2009, at 10:01 AM, Paterline, David L. (NF) wrote:

Unfortunately, I get the same result after updating to Eclipse 3.4.2. It seems to be the same problem reported by Marcelo Vanti:

This problem was already reported by myself and other users and seems to be a Photran bug. I am using photran 4.0 beta 5, eclipse 3.4.1 and windows vista, and the bug appears in the outline view , or the java.lang.NullPointerException when I open a fortran file, but never both in the same time. If , in starting photran I get the java.lang.NullPointerException opening a file, so I click restart and the bug becomes the outline view bug, with the message "Could not create the view: An unexpected exception
was thrown.", but I can live with that.

But, I am hoping we don't have to live with that (being unable to use the outline view).

Thanks.

---
David L. Paterline
Principal Engineer
Core Engineering

Westinghouse Electric Company
Westinghouse Energy Center
Monroeville, PA 15146, USA
Phone:  +1 (412) 374-2286
Fax:  +1 (412) 374-2284
Email:  paterldl@xxxxxxxxxxxxxxxx
Home Page:  www.westinghousenuclear.com



-----Original Message-----
From: photran-bounces@xxxxxxxxxxx [mailto:photran- bounces@xxxxxxxxxxx] On Behalf Of Greg Watson
Sent: Wednesday, April 01, 2009 4:06 PM
To: Photran Information
Subject: Re: [photran] Problem with Photran 4.0 beta 5

Hi all,

Please try updating to Eclipse 3.4.2 to see if this problem still persists. I've seen some strange UI bugs in 3.4.1 that have cleared up in 3.4.2.

Regards,

Greg

On Apr 1, 2009, at 10:44 AM, Marcelo Vanti wrote:

Hi,
This problem  was already reported by myself and other  users and
seems to be a Photran bug. I am using photran 4.0 beta 5, eclipse
3.4.1 and windows vista, and the bug appears in the outline view , or
the java.lang.NullPointerException  when I  open a fortran file, but
never both in the same time.  If , in starting photran I get the
java.lang.NullPointerException opening a file, so I click restart and
the bug becomes  the outline view bug, with the message "Could not
create the view: An unexpected exception was thrown.", but I can live
with that.
Sorry my English,
Marcelo Vanti
Departamento de Engenharia Elétrica e de Telecomunicações Universidade
Regional de Blumenau Paterline, David L. (NF) wrote:
Hi -

I decided to have a look at the new Photran 4.0 beta 5, and am having some problems. I am using Eclipse SDK Version 3.4.1 on a Linux SLES90
workstation. I was using Photran beta 4, which I uninstalled before
installing the beta 5 version. Now, in the Outline view, I get a Java
null pointer exception when I open a Fortran file (file name
extension ".f90), with the message "Could not create the view: An
unexpected exception was thrown". The traceback shows:

java.lang.NullPointerException
	at
org
.eclipse
.cdt
.internal
.ui.editor.CContentOutlinePage.setInput(CContentOutlinePage.java:83)
	at
org
.eclipse
.photran
.internal
.ui
.editor
.AbstractFortranEditor
.setOutlinePageInput(AbstractFortranEditor.java:461)
	at
org
.eclipse
.photran
.internal
.ui
.editor
.AbstractFortranEditor.getOutlinePage(AbstractFortranEditor.java: 448)
	at
org
.eclipse
.photran
.internal
.ui
.editor.AbstractFortranEditor.getAdapter(AbstractFortranEditor.java:
410)
	at
org
.eclipse.ui.internal.views.ViewsPlugin.getAdapter(ViewsPlugin.java:
103)
	at
org
.eclipse
.ui
.views
.contentoutline.ContentOutline.doCreatePage(ContentOutline.java:131)
	at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:
399)
	at
org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java: 741)
	at
org
.eclipse.ui.part.PageBookView.showBootstrapPart(PageBookView.java:
907)
	at
org
.eclipse.ui.part.PageBookView.createPartControl(PageBookView.java:
482)

Can anyone offer any advice on this problem?

Thank you.




---
David L. Paterline
Principal Engineer
Core Engineering

Westinghouse Electric Company
Westinghouse Energy Center
Monroeville, PA 15146, USA
Phone:  +1 (412) 374-2286
Fax:  +1 (412) 374-2284
Email:  paterldl@xxxxxxxxxxxxxxxx
Home Page:  www.westinghousenuclear.com



-----Original Message-----
From: photran-bounces@xxxxxxxxxxx [mailto:photran-
bounces@xxxxxxxxxxx] On Behalf Of Jeffrey Overbey
Sent: Friday, February 20, 2009 4:35 PM
To: A Fortran Plug-in for Eclipse
Subject: [photran] Photran 4.0 beta 5 now available

Photran 4.0 beta 5 is now available.

This version adds
* Fortran 2003 support
* A new error parser for gfortran
* Find All References
* Hover Tips
* Move Saved Variables to Common Block refactoring
* Support for the Intel(r) 64 platform and Intel(r) Fortran 11.0

If you already have beta 4 installed from the update site, you should
be able to click Help > Software Updates, choose Photran from the
list of Installed Software, and click Update.  If that doesn't work,
click Uninstall, and then following the instructions for a fresh
installation:

http://www.eclipse.org/photran/download.php


Thanks to Stas Negara, Bill Hilliard, Jungyoon Lee, Kun Koh, Nam Kim,
and David Weiner for contributing code to this beta.



_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran

_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran

__________ Informação do ESET NOD32 Antivirus, versão da vacina 3980
(20090401) __________

A mensagem foi verificada pelo  ESET NOD32 Antivirus.

http://www.eset.com






_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran

_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran

_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran



Back to the top