-
Notifications
You must be signed in to change notification settings - Fork 2
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
Bigger project (SNAP) fails #35
Comments
The extension gets stuck on the main program in SNAP: ![]() It's stuck on "loading". It's not clear from the log what it is doing. Update: I created an MRE for this here: #50. This works: |
Clicking on a module and "go to definition" should open up the module source file. |
P.S. I found that if I open VSCode in the src directory, then it will automatically find the |
Yes, this is yet to be done. @dylon you'll be doing this? |
MODULE sn_module
REAL, ALLOCATABLE, DIMENSION(:,:,:) :: ec
CONTAINS
SUBROUTINE sn_expcoeff ( ndimen )
INTEGER, INTENT(IN) :: ndimen
ec(:,1,5) = 1.0
END SUBROUTINE sn_expcoeff
END MODULE sn_module |
module time_module_xx
IMPLICIT NONE
PUBLIC
REAL :: tparset_ = 0.0
REAL :: wtime_ = 0.0
END module time_module_xx
module plib_module_xx
use time_module_xx, only: wtime_
PUBLIC
INTEGER :: iproc = 0
INTEGER :: root = 0
INTEGER :: pinit = 0
INTEGER :: pcomm_set = 0
end module
PROGRAM snap_main
USE time_module_xx, ONLY: tparset_
USE plib_module_xx, ONLY: pinit, &
pcomm_set
tparset_ = tparset_ + 1.0
END PROGRAM snap_main % lfortran a.f90 --line=23 --column=17 --lookup-name
[] If I use the following diff it works: diff --git a/a.f90 b/a.f90
index a8a3493a2..0e060bda8 100644
--- a/a.f90
+++ b/a.f90
@@ -18,7 +18,6 @@ end module
PROGRAM snap_main
USE time_module_xx, ONLY: tparset_
- USE plib_module_xx, ONLY: pinit, &
-pcomm_set
+ USE plib_module_xx, ONLY: pinit, pcomm_set
tparset_ = tparset_ + 1.0
END PROGRAM snap_main |
I did:
This works.
Then I opened
src/snap_main.f90
in VSCode and it would not show any symbols. No error is shown (#34, #33).LFortran clearly knows how to parse it, even fully compile this project. But the LSP somehow doesn't work, we need to debug it, it's either a bug in LFortran or in lfortran-lsp or both.
The text was updated successfully, but these errors were encountered: