Skip to content

"No symbols found in document" using vscode 1.41.0 #154

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

Closed
cpraveen opened this issue Dec 16, 2019 · 11 comments · Fixed by #167
Closed

"No symbols found in document" using vscode 1.41.0 #154

cpraveen opened this issue Dec 16, 2019 · 11 comments · Fixed by #167

Comments

@cpraveen
Copy link

cpraveen commented Dec 16, 2019

When I open a fortran file, it does not show any symbols (function/subroutine) in the "Outline" portion on the left of the gui. This used to work for me but seems to have stopped sometime.

I have also added

  "fortran.symbols": ["function", "subroutine"]

in my settings.json file.

I am on Mac OSX Catalina with vscode version 1.41.0

@pedro-ricardo
Copy link
Collaborator

Hello there, can you provide some example of implementation in which this happens ?
It still works for me so, I need to reproduce your problem know where it is.

If you can't send me the file, I recommend you to create a empty Fortran module and start inserting the subroutine declarations of your file in it (they can be empty, the file doesn't need to compile)...

When you create the new file the symbols are supposed to be working.. by inserting your symbols into the new file you can see when the problem starts to happen, and that is what i need to reproduce it!

Thanks

@cpraveen
Copy link
Author

cpraveen commented Dec 16, 2019

I have attached a screenshot. The file opened is here

https://github.com/cpraveen/numpde/blob/master/euler1d/fortran/euler_fo.F90

I have seen this on two different machine.

I had an older version of vscode/extension on one computer and the symbols were showing. I updated today morning and the symbols are not showing up.

Screenshot 2019-12-16 at 7 18 31 PM

@pedro-ricardo
Copy link
Collaborator

Ok ... thanks for the file ...

But that's weird, look i have the file here and the symbols are showing
Screenshot_2019-12-16_12-22-50

Can you disable all your extensions besides the Fortran one and restart the workspace to check it again ... maybe there is some conflict

@cpraveen
Copy link
Author

I disabled all other extensions and restarted vscode but that did not help.

@pedro-ricardo
Copy link
Collaborator

Well .. Maybe VSCode changed base stuff in this new version ... Mine still 1.38.1, and this one still work.
I recommend you to downgrade yours for now because i'm unable to look into it at this moment.

Also change this issue title for something like: Symbols not working in version x.xx.x

@cpraveen cpraveen changed the title No symbols found in document "No symbols found in document" using vscode 1.41.0 Dec 16, 2019
@ReDD11
Copy link

ReDD11 commented Dec 16, 2019

Same issue here. Restarted PC / reinstalled extension, yet the problem persists. When I toggle developper tools, it gives the following errors:
9

@pedro-ricardo
Copy link
Collaborator

@ReDD11 Like I said before, it's likely that VSCode changed the usage of some module that involves symbols. It should be simple to fix but I don't have the time right now.

@snafumeander
Copy link

Hi, I have the same problem.
It used to work well.
I didn't specify any gfortran path, only vscode 1.41 and your extension and a .f90 file with some subroutines.
The outline window will show nothing. My several computers all have the problem.
I think it's not the extension's problem, but I think you can help solving the problem.
Thanks!

@pedro-ricardo
Copy link
Collaborator

I managed to fix it in #161, It will be merged soon.
Sorry for the long delay and thanks for reporting.

pedro-ricardo added a commit that referenced this issue May 15, 2020
### Check List
- Highlight
- [x] `select` keyword - *Merge #165 to fix #149*
- [x] `rank` keyword -  *Merge #165*
- [x] `forall` keyword - *Merge #170 to fix #169*
- Symbol List
- [x] Symbols bug in VSCode +1.40 - *Merge #161 to fix #154*
- [x] Symbols classification - *Merge #141 to fix #140*
- [x] Long named symbols - *Merge #151*
- Settings
- [x] Add more options - *Merge #152*
- Dependencies
- [x] Merge `dependabot` PR's
    - [x] lodash - *Merge #144*
    - [x] mixin-deep - *Merge #146*
    - [x] handlebars - *Merge #155* 
- Code Completion
- [x] Array constructor - *Fix #148*
- New Features
- [x] Breakpoints - *Merge #150*
@mbarborini
Copy link

Hello. Sorry to bother but the error is still there in version VS Code v1.70 and modern-fortran v3.2.0. Is there a workaround?

@gnikit
Copy link
Member

gnikit commented Aug 10, 2022

Hello. Sorry to bother but the error is still there in version VS Code v1.70 and modern-fortran v3.2.0. Is there a workaround?

So symbols are working as expected. There are tests for this both in vscode and the language server.

There can be many reasons why they are not showing but for us to be able to help you will have to provide enough info to replicate the issue.

Please open a Q&A Discussion with your - modern Fortran vscode settings

  • a minimal working example for the code
  • the version of fortls
  • and the output of the log channel for Modern Fortran

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants