Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] No outline --- UnsupportedOperationException: null

Hello again,

my apologies but the offending module file I have suggested in my previous message (below) is not valid (i.e. it does not reproduce the problem).

I have now worked out a minimal example following these steps:
1. create a new workspace (e.g. ~/workspace);
2. create a new Fortran project > Makefile Project > Empty project - Fortran > -- Other toolchain -- (e.g. called test_prj);
3. go with the default settings (thus refactoring is *not* activated);
4. create a new source Fortran file of type module (e.g. called foo.f90);
5. insert the following content in the newly created module file:
module foo
  implicit none

  real, parameter :: bar = 0.

end module foo
6. The Outline area shows the error: UnsupportedOperationException: null

Additional information:
- I am using Eclipse Eclipse Luna for Parallel Application Developers on Ubuntu Linux 14.04 Trusty Tahr 64bit;
- java version installed
$ java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

Can you reproduce the same problem? If so, is there a workaround?

I am still completely lost and this problem with the missing outline affects critically my productivity.

Regards,

Emanuele


On 08/09/14 14:11, Emanuele Pagone wrote:
Dear Photraneers,

I have recently installed Eclipse Luna for Parallel Application
Developers. The first time I opened my existing workspace, I have been
asked to confirm the upgrade of the workspace to the new version; which
I did.

Unfortunately, most of the files of my Fortran project (an "other
toolchain" Makefile project) does not show the Outline and in the
relevant space I read an error: "UnsupportedOperationException: null".
If I double-click on it I am brought to a different place for every file
(or, at least, I could not figure out any common cause that could
trigger the error).

For example, in the following module file:

module foo
   use mach_consts, only: dp
   use iso_fortran_env, only: output_unit
   use file_utils, only: max_label
   implicit none

   real(dp), parameter :: bar = -1e9_dp

   [snip]

end module foo

the error points to the "implicit none" line and if I comment line by
line, the error moves up until the very first line ("module foo").

I have tried to create another workspace and import the projects there
but it did not change anything. I have also created a new project in the
newly created workspace and imported only the source code files with no
result. Over the internet it seems there is no trace of this error, so I
suppose it is something specific to my installation.

Could you please help me with this problem?

Regards,

Emanuele



Back to the top