Comments (3)
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.
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.
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)
- False positive: Object not found in scope in case of "USE, NON_INTRINSIC" HOT 5
- Error during parsing HOT 15
- Fortls not getting the root_dir HOT 2
- `Initialization failed` error
- Help need in using fortls in emacs HOT 3
- Disable Nonconforming Tab Character Warnings
- Looking for help with launching on Linux with VS Code HOT 5
- Need some help,Coarrays disabled at (1), use '-fcoarray=' to enable HOT 12
- 'Unable to start the Fortran language server.' HOT 4
- Toggle hover letter case
- Allow for a more flexible options file HOT 1
- Handle old external definitions properly HOT 2
- add topics HOT 2
- Update Visual Studio extension to work on Visual Studio 2022 and publish it to VS marketplace. HOT 1
- error about 'unknown module' when modules are in different folder and connected with cmake HOT 1
- Unable to get Distribution.from_name(distribution_name) HOT 3
- Code in #ifdef not linted (preprocessor variable not defined) HOT 3
- Convert keywords to uppercase
- getting completions from Nek5000 although not installed on my system HOT 4
- "Unexpected End of Scope at line X" when using ";" to put 2 end in the same line
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 fortran-language-server.