Skip to content

Updated VS Code extensions #383

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

Merged
merged 2 commits into from
Mar 20, 2022
Merged

Conversation

gnikit
Copy link
Member

@gnikit gnikit commented Mar 18, 2022

Modern Fortran now supports natively Language Server support (FORTRAN Intellisense), formatting (fprettify and findent)

Modern Fortran now supports natively Language Server support (FORTRAN Intellisense), formatting (fprettify and findent)
@certik
Copy link
Member

certik commented Mar 18, 2022

Should we still keep the other links in a section like "Other tools", so that people can discover them?

@gnikit
Copy link
Member Author

gnikit commented Mar 18, 2022

I think the "Other tools" section should be kept mostly because VSCode without GitLens for big projects is rough.
The extensions that I would vouch for are:

  • GitLens which is crucial IMO
  • Remote Development for SSHing into workstations, WSL and spinning up containers

I would consider adding the CMake extension from Microsoft simply because a lot of people might find it useful (I prefer the command line, but to each their own).

I am not familiar with the TOML extension but I suspect it might be useful for fpm dev work

@certik
Copy link
Member

certik commented Mar 18, 2022

If you want, just put the links that you removed in this PR to the "Other Tools" or "Additional Tools" section, and we can merge it.

Also edited the features and name of the VS Code extension.
@gnikit
Copy link
Member Author

gnikit commented Mar 18, 2022

So I think this is a good place for new VS Code users that want to code in Fortran to start. I believe it should be okay now.

As for the tools I completely removed, unfortunately they don't play well with the main Fortran extension anymore, so I would not recommend anyone to install them alongside Modern Fortran.

These extensions would attempt to do the same thing as Modern Fortran but given that they would have the same "priority" I don't know what would happen.

e.g. Having installed both Modern Fortran >= 3.0.0 and FOTRAN Intellisense would lead to multiple duplicate hover messages. GoTo Definition/Implementations would lead to undefined behaviour and using any of the new fortls arguments in your settings would cause FORTRAN Intellisense to crash.

I think the fprettify extension would also have problems with auto-formatting OnSave which some people have enabled globally (and also the behaviour would be undefined).

the breaking point extension I think it has become redundant for Modern Fortran since 2019 when I added full-blown debugger support.

There is another Fortran extension (I think called fortran) which does not have any of these features so I suspect users would need these extensions to have a IDE-like experience in VSCode, but then again that project has not been updated since 2017, so I would not recommend users to use it.

@awvwgk
Copy link
Member

awvwgk commented Mar 20, 2022

Thanks for the discussion and feedback everybody. I think we can go ahead and merge.

@awvwgk awvwgk merged commit 540614b into fortran-lang:master Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants