-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fortran Submodule Support Atom-IDE Outline #14
Comments
Thanks for the report. Currently, the language server does not support submodules or some of the associated constructs (like "module subroutine" in interface statements). The issue you described with the outline should be easy enough to fix, which I will work on. However, I suspect that the interface won't be handled properly in autocompletion and other areas without improvements to handle submodules. If the code you are working with is open source I would be happy to take a look and work on improving practical submodule support as well. |
I just pushed a change that should fix the outline portion of this bug. As I mentioned submodule support for other tasks will be future work, see issue #15. I will comment again on this issue once the fix has been included in a |
Thanks for fixing the outline issue. You are right, autocompletion is another issue. I circumvented this so far by coding the submodules as modules importing everything via USE statements so that autocompletion works properly and declaring them submodules later on. My code is open source but not on a release level yet. It doesn't go much beyond the minimal example provided above though. If you would like to have a look anyway I can share it with you towards the end of the week. |
I have published this and basic submodule support in release v0.3.6. Let me know if you run into further issues. |
Outline and autocompletion work fine for me now. Thanks again for the fixes. There are two minor things which I would like to suggest for future enhancements. Both of them are mainly convenience issues. a) Include Interfaces and procedures defined therein in the outline |
Dear Chris,
first of all thanks for developing and maintaining the language server and the atom ide for Fortran.
I'm frequently using the Fortran 2008 submodule construction in my code and am experiencing an issue with the outline feature of the atom ide which appears to be related to the language server. A frequently appearing part of my code looks like this
The outline is just displaying the defined type correctly but neither the interface nor the subroutines defined in the main module. Instead the symbol for module appears. When I replace module subroutine in the interface with just subroutine everything is displayed correctly. I assume that the language server (or the ide) just detects the module statement instead of processing the whole module subroutine statement.
Thanks for looking into this!
Best,
Marco
The text was updated successfully, but these errors were encountered: