Giter VIP home page Giter VIP logo

Comments (3)

hansec avatar hansec commented on June 29, 2024

Can you run the parser in debug mode on one of the files? Since you get an error for every file I suspect there is some common syntax feature that is tripping up the parser. I will try and take a look myself as well since it looks like the source code is freely available.

from fortran-language-server.

dpo avatar dpo commented on June 29, 2024

Thanks. Here's what I obtain:

$ fortls --debug_parser --debug_filepath=qr_mumps-2.0/src/solve/qrm_apply.F90 

Testing parser
  File = "qr_mumps-2.0/src/solve/qrm_apply.F90"
  Detected format: free

=========
Parser Output
=========

Traceback (most recent call last):
  File "/Users/dpo/Library/Python/2.7/bin/fortls", line 9, in <module>
    load_entry_point('fortran-language-server==0.3.2', 'console_scripts', 'fortls')()
  File "build/bdist.macosx-10.12-intel/egg/fortls/__init__.py", line 75, in main
  File "build/bdist.macosx-10.12-intel/egg/fortls/parse_fortran.py", line 497, in process_file
AttributeError: 'NoneType' object has no attribute 'add_use'

from fortran-language-server.

hansec avatar hansec commented on June 29, 2024

Ok, it looks like the parser is having issues with subroutine, module, and other object names starting with an underscore. I will try to get a fix for this in the next few days. Thanks for the report!

from fortran-language-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.