You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Type fields or methods are not detected if spaces are used around % #286
Describe the bug
To gfortran, it does not make a difference, if I use spaces around the % operator. However, if I use them, fortls is unable to find the symbol (jump to it's definition).
To Reproduce
In the following program, if you try to jump to the definition of a, it works. If you try to jump to the definition of b, it does not work. The code compiles and runs find, without any error or warnings under gfortran 13.1.1.
program test
type :: some_type
integer :: a
real :: b
end type some_type
type(some_type) :: t
t = some_type(1, 2.0)
print *, t%a, t % b
end program test
I am using fortls 2.13.0 through neovim lsp. My configuration is
As I understand it, the on_attach function defines the key mappings to interact with lsp. So when you press gd, for example, you jump to the definition of the symbol under the cursor.
Activity
Act0r1 commentedon Jun 6, 2023
hi, can you show your nvim lspconfig? I just can't install lsp servers
hheinzer commentedon Jun 7, 2023
Sure:
Act0r1 commentedon Jun 7, 2023
Yeah, thank you very much, last night I did take it and installed, but without attach, say pls, it is necessary use attach in installation?) Thank you
hheinzer commentedon Jun 7, 2023
As I understand it, the
on_attachfunction defines the key mappings to interact with lsp. So when you pressgd, for example, you jump to the definition of the symbol under the cursor.Act0r1 commentedon Jun 7, 2023
Yeah, but I install another lsp servers like pyright and rust_analyzer, there are work, but I don't don't
attachithheinzer commentedon Jun 7, 2023
They might come with default key bindings. Doing it this way allows you to have the same key bindings across all lsp servers.
Issue fortran-lang#286: Fix wrong indentation of derived type
issue fortran-lang#286: indication derived type args
folk85 commentedon Jul 16, 2023
@gnikit , I updated the code tests. Could you review the changes?
gnikit commentedon Jul 16, 2023
@folk85 Your Pull request is out of date, can you please rebase to master.
I will have a look again
gnikit commentedon Jul 16, 2023
@Act0r1 maybe this can be of help https://fortls.fortran-lang.org/editor_integration.html#neovim
Act0r1 commentedon Jul 16, 2023
I already solved, thank you
folk85 commentedon Jul 16, 2023
Done
Issue fortran-lang#286: indication derived type args
fix: allow whitespaces around % access operator