# Visual Studio Code

**URL:** https://fortran-lang.discourse.group/c/help/vscode/16.md?page=1

[Latest](https://fortran-lang.discourse.group/latest.md) · [Categories](https://fortran-lang.discourse.group/categories.md)

**Page:** 2

---

## [Unable to use Modern Fortran with fortls](https://fortran-lang.discourse.group/t/unable-to-use-modern-fortran-with-fortls/8258)

<div class="topic-metadata">

**Author:** [@Benaplus1](https://fortran-lang.discourse.group/u/Benaplus1)\
**Replies:** 15\
**Last updated:** [June 28, 2024, 12:11pm UTC](https://fortran-lang.discourse.group/t/unable-to-use-modern-fortran-with-fortls/8258 "2024-06-28T12:11:42Z")

</div>

Hello, sorry to bother you with what must be the 50th request for help on this topic you’ve seen in the past week. However, our computer system was upgraded to a new version of Linux yesterday, and I have been unable to …

---

## [Cannot open included file](https://fortran-lang.discourse.group/t/cannot-open-included-file/8237)

<div class="topic-metadata">

**Author:** [@ParkerLewis](https://fortran-lang.discourse.group/u/ParkerLewis)\
**Replies:** 6\
**Last updated:** [June 21, 2024, 10:37am UTC](https://fortran-lang.discourse.group/t/cannot-open-included-file/8237 "2024-06-21T10:37:39Z")

</div>

Hello, I have VS Code and Modern Fortran with fortls set up, on Windows. I have a main source dir with some Fortran .f files, and a few subfolders (say lib) with some Fortran files as well, both .f and .inc. Say a.f i…

---

## [About i90 files](https://fortran-lang.discourse.group/t/about-i90-files/8214)

<div class="topic-metadata">

**Author:** [@wiring1881](https://fortran-lang.discourse.group/u/wiring1881)\
**Replies:** 2\
**Last updated:** [June 15, 2024, 6:05am UTC](https://fortran-lang.discourse.group/t/about-i90-files/8214 "2024-06-15T06:05:35Z")

</div>

Is there a way to enable syntax highlighting in vscode-fortran-support for i90 files (intermediate files generated from ifx/ifort compiler)? and in addition even formatting for that? In other words, treat these files jus…

---

## ["Had trouble installing fortls, please install manually" . How to install manually without pip?](https://fortran-lang.discourse.group/t/had-trouble-installing-fortls-please-install-manually-how-to-install-manually-without-pip/6721)

<div class="topic-metadata">

**Author:** [@venexiano](https://fortran-lang.discourse.group/u/venexiano)\
**Replies:** 14\
**Last updated:** [June 13, 2024, 10:46am UTC](https://fortran-lang.discourse.group/t/had-trouble-installing-fortls-please-install-manually-how-to-install-manually-without-pip/6721 "2024-06-13T10:46:45Z")

</div>

I am a long term user of Fortran, now I need to use it under Windows with VScode and gfortran. I did it a couple of years with Modern Fortran extension, now it seems things are changed a little bit. Soon after I install …

---

## [Fortls interfacing with Modern Fortran in VS Code](https://fortran-lang.discourse.group/t/fortls-interfacing-with-modern-fortran-in-vs-code/5818)

<div class="topic-metadata">

**Author:** [@rem](https://fortran-lang.discourse.group/u/rem)\
**Replies:** 8\
**Last updated:** [May 9, 2024, 6:17pm UTC](https://fortran-lang.discourse.group/t/fortls-interfacing-with-modern-fortran-in-vs-code/5818 "2024-05-09T18:17:23Z")

</div>

Hi everyone, Disclaimer, I am very new to Fortran and computation in general. I am attempting to incorporate Fortls into Modern Fortran in VS Code. I am running a remote session of Windows Subsystems for Linux with Ubun…

---

## [Setting fortls severity](https://fortran-lang.discourse.group/t/setting-fortls-severity/7931)

<div class="topic-metadata">

**Author:** [@saru1799](https://fortran-lang.discourse.group/u/saru1799)\
**Replies:** 1\
**Last updated:** [April 30, 2024, 10:59am UTC](https://fortran-lang.discourse.group/t/setting-fortls-severity/7931 "2024-04-30T10:59:53Z")

</div>

Hi! I am using fortran in vscode (but I am quite a new user on both fortran and vscode). I have modern fortran and fortls extensions. When the errors appear, they normally appear by severity order (like, errors before w…

---

## [Configuring fpm + Modern Fortran + fortls on VSCode issues](https://fortran-lang.discourse.group/t/configuring-fpm-modern-fortran-fortls-on-vscode-issues/7912)

<div class="topic-metadata">

**Author:** [@DCLopes](https://fortran-lang.discourse.group/u/DCLopes)\
**Replies:** 6\
**Last updated:** [April 27, 2024, 6:46pm UTC](https://fortran-lang.discourse.group/t/configuring-fpm-modern-fortran-fortls-on-vscode-issues/7912 "2024-04-27T18:46:10Z")

</div>

I’m pretty new to Fortran, so pardon if these questions are basic. i’ve installed fpm, Modern Fortran extension to VSCode and fortls, created a new project with fpm new. I’ve added stdlib as one of my dependencies on the…

---

## [Ignore warning produced in VS code](https://fortran-lang.discourse.group/t/ignore-warning-produced-in-vs-code/7849)

<div class="topic-metadata">

**Author:** [@runborg](https://fortran-lang.discourse.group/u/runborg)\
**Replies:** 4\
**Last updated:** [April 16, 2024, 4:47am UTC](https://fortran-lang.discourse.group/t/ignore-warning-produced-in-vs-code/7849 "2024-04-16T04:47:41Z")

</div>

Hi everyone, I have somewhat recently found myself in charge of a somewhat large Fortran project. I do not have very much Fortran experience (but am learning as I go). The project was authored by someone who knew enough…

---

## [Fortls not initialising](https://fortran-lang.discourse.group/t/fortls-not-initialising/7720)

<div class="topic-metadata">

**Author:** [@ssg](https://fortran-lang.discourse.group/u/ssg)\
**Replies:** 1\
**Last updated:** [March 28, 2024, 10:58pm UTC](https://fortran-lang.discourse.group/t/fortls-not-initialising/7720 "2024-03-28T22:58:19Z")

</div>

Hi, I’m having issues when using Fortran-Modern on VSCode, it seems to be launching fine however I can’t use any of the features such as go to definition etc. I’ve attached a screenshot of the Modern-Fortran output. Th…

---

## [Modern Fortran Subroutine Arguments in continuation lines](https://fortran-lang.discourse.group/t/modern-fortran-subroutine-arguments-in-continuation-lines/7671)

<div class="topic-metadata">

**Author:** [@ygtshn](https://fortran-lang.discourse.group/u/ygtshn)\
**Replies:** 6\
**Last updated:** [March 28, 2024, 9:36pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-subroutine-arguments-in-continuation-lines/7671 "2024-03-28T21:36:17Z")

</div>

Hello fellow Fortran devs, I am new in a forum but relatively experienced in fortran. My development environment seems to be working fine however, whenever I continue my subroutine arguments in the next line, argument c…

---

## [Modern Fortran on vscode in WSL 2 Ubuntu - fortls problem](https://fortran-lang.discourse.group/t/modern-fortran-on-vscode-in-wsl-2-ubuntu-fortls-problem/6847)

<div class="topic-metadata">

**Author:** [@noah](https://fortran-lang.discourse.group/u/noah)\
**Replies:** 3\
**Last updated:** [March 27, 2024, 12:52pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-on-vscode-in-wsl-2-ubuntu-fortls-problem/6847 "2024-03-27T12:52:46Z")

</div>

Hello, as the title suggests, I’m trying to use Modern Fortran (v3.2.0) in vscode (v1.84.2) in WSL 2 (Ubuntu 22.04.2 LTS) on Windows 10. It’s the classic error that it doesn’t seem to be able to find fortls, even though…

---

## [Specifying fortran 77 vs fortran 90 in vscode fortran server](https://fortran-lang.discourse.group/t/specifying-fortran-77-vs-fortran-90-in-vscode-fortran-server/7569)

<div class="topic-metadata">

**Author:** [@DavideSangalli](https://fortran-lang.discourse.group/u/DavideSangalli)\
**Replies:** 9\
**Last updated:** [March 11, 2024, 3:58pm UTC](https://fortran-lang.discourse.group/t/specifying-fortran-77-vs-fortran-90-in-vscode-fortran-server/7569 "2024-03-11T15:58:13Z")

</div>

Dear all, I’m new with VS code. I’m using it for a large project where the source is written in modern fortran inside \*.F files, pre-processed with a FPP (fortran pre-processor) to generate \*.f90 files, and then compil…

---

## [Annoying ".i90",".i" files when using ifort compiler](https://fortran-lang.discourse.group/t/annoying-i90-i-files-when-using-ifort-compiler/4716)

<div class="topic-metadata">

**Author:** [@Pram](https://fortran-lang.discourse.group/u/Pram)\
**Replies:** 21\
**Last updated:** [March 8, 2024, 5:04pm UTC](https://fortran-lang.discourse.group/t/annoying-i90-i-files-when-using-ifort-compiler/4716 "2024-03-08T17:04:45Z")

</div>

When choosing ifort as compiler, it will automatically genearate “xxx.i90” file for “xxx.f90” and “xxxx.i” for “xxxx.f”. I don’t know what the “i90” files are used for. But it is really annoying sometimes. Am I able to d…

---

## [How to move from one file to another](https://fortran-lang.discourse.group/t/how-to-move-from-one-file-to-another/7552)

<div class="topic-metadata">

**Author:** [@OLDSCHOOL](https://fortran-lang.discourse.group/u/OLDSCHOOL)\
**Replies:** 1\
**Last updated:** [March 6, 2024, 11:41pm UTC](https://fortran-lang.discourse.group/t/how-to-move-from-one-file-to-another/7552 "2024-03-06T23:41:49Z")

</div>

while in Visual Studio Code, how do I move from one file to another? In the image below, I am working in the sample.f90 file then want to switch to the example.f90 file. I can switch between the files to make adjustmen…

---

## [Linting across files](https://fortran-lang.discourse.group/t/linting-across-files/7221)

<div class="topic-metadata">

**Author:** [@ParkerLewis](https://fortran-lang.discourse.group/u/ParkerLewis)\
**Replies:** 3\
**Last updated:** [March 6, 2024, 2:50pm UTC](https://fortran-lang.discourse.group/t/linting-across-files/7221 "2024-03-06T14:50:32Z")

</div>

Hello, I am running VS Code on Windows with the Modern Fortran extension. I have installed fortls (not fortran-language-server, but fortls). I also have the mingw toolchain with gfortran (with the correct path added to …

---

## [Error launching fortls popping up when opening an f90 file](https://fortran-lang.discourse.group/t/error-launching-fortls-popping-up-when-opening-an-f90-file/4676)

<div class="topic-metadata">

**Author:** [@elseifthen](https://fortran-lang.discourse.group/u/elseifthen)\
**Replies:** 12\
**Last updated:** [February 28, 2024, 10:59am UTC](https://fortran-lang.discourse.group/t/error-launching-fortls-popping-up-when-opening-an-f90-file/4676 "2024-02-28T10:59:50Z")

</div>

Since recently, I think it coincided with the upgrade to vscode 1.73.0, but I’m not 100% sure, I get this message upon opening f90 files: Error launching fortls: Please check that all selected options are supported by y…

---

## [Modern Fortran - VsCode Linter: Initialize uses too many files](https://fortran-lang.discourse.group/t/modern-fortran-vscode-linter-initialize-uses-too-many-files/7439)

<div class="topic-metadata">

**Author:** [@mdeberts](https://fortran-lang.discourse.group/u/mdeberts)\
**Replies:** 1\
**Last updated:** [February 20, 2024, 10:56pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-vscode-linter-initialize-uses-too-many-files/7439 "2024-02-20T22:56:37Z")

</div>

Hello, when I use Modern Fortran in VsCode and check the box “Attempt to initialize the linter by mock-compiling all files in workspace” it will try to initialize all files in workspace. But this takes ~2h since my pro…

---

## [Modern Fortran Manual Installation Error](https://fortran-lang.discourse.group/t/modern-fortran-manual-installation-error/4506)

<div class="topic-metadata">

**Author:** [@OnlyGiulio](https://fortran-lang.discourse.group/u/OnlyGiulio)\
**Replies:** 15\
**Last updated:** [October 13, 2022, 2:42pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-manual-installation-error/4506 "2022-10-13T14:42:44Z")

</div>

Hello everyone, I am trying to install on my company pc the Modern Fortran extension but if I try to do so I end up with the following error: " \[“Invalid: Corrupt ZIP: end of central directory record signature not fo…

---

## [Fortran in regular life](https://fortran-lang.discourse.group/t/fortran-in-regular-life/7226)

<div class="topic-metadata">

**Author:** [@Takosan](https://fortran-lang.discourse.group/u/Takosan)\
**Replies:** 7\
**Last updated:** [January 20, 2024, 4:30pm UTC](https://fortran-lang.discourse.group/t/fortran-in-regular-life/7226 "2024-01-20T16:30:35Z")

</div>

How can I use Fortran in regular life? Also, does visual studio code have only Fortran 95?

---

## [Modern Fortran Acting Odd](https://fortran-lang.discourse.group/t/modern-fortran-acting-odd/7194)

<div class="topic-metadata">

**Author:** [@EthanKletschke](https://fortran-lang.discourse.group/u/EthanKletschke)\
**Replies:** 8\
**Last updated:** [January 15, 2024, 4:56pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-acting-odd/7194 "2024-01-15T16:56:51Z")

</div>

Hey guys, I have had a multitude of issues with the Modern Fortran extension since I installed it. It acts completely bonkers for me. As of 2 months ago, it stopped checking my syntax as I code. It only syntax checks aft…

---

## [Modern Fortran not parsing the workspace .fortlsrc?](https://fortran-lang.discourse.group/t/modern-fortran-not-parsing-the-workspace-fortlsrc/7163)

<div class="topic-metadata">

**Author:** [@zbinkz](https://fortran-lang.discourse.group/u/zbinkz)\
**Replies:** 5\
**Last updated:** [January 12, 2024, 5:46pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-not-parsing-the-workspace-fortlsrc/7163 "2024-01-12T17:46:39Z")

</div>

Hello, Debian Linux 12 with VS Code v-1.85.1, Modern Fortran Pre-Release v3.4.2024010301. fortls is installed through pipx and available in my $PATH. The linter is disabled for the moment. Here are my \*.code-workspace …

---

## [Modern Fortran on VSCode fails to recognize external includes](https://fortran-lang.discourse.group/t/modern-fortran-on-vscode-fails-to-recognize-external-includes/5600)

<div class="topic-metadata">

**Author:** [@anoban](https://fortran-lang.discourse.group/u/anoban)\
**Replies:** 6\
**Last updated:** [January 10, 2024, 10:10pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-on-vscode-fails-to-recognize-external-includes/5600 "2024-01-10T22:10:51Z")

</div>

Hi there! I’m on Windows 10, using Visual Studio Code Version: 1.77.3 (system setup) with Modern-Fortran extension v3.2.0 installed. However, the extension does not seem to recognize the external includes during linting …

---

## [Simple setting in Windows](https://fortran-lang.discourse.group/t/simple-setting-in-windows/7071)

<div class="topic-metadata">

**Author:** [@vicent](https://fortran-lang.discourse.group/u/vicent)\
**Replies:** 15\
**Last updated:** [January 4, 2024, 2:55pm UTC](https://fortran-lang.discourse.group/t/simple-setting-in-windows/7071 "2024-01-04T14:55:26Z")

</div>

I am going back to Fortran since my university days (25 years ago or so). I am writing to ask about the best and simplest setting on Windows. These are my needs and requirements: OS: Windows 10. I am using VS Code. I h…

---

## [Module not found in project](https://fortran-lang.discourse.group/t/module-not-found-in-project/7045)

<div class="topic-metadata">

**Author:** [@Joker42](https://fortran-lang.discourse.group/u/Joker42)\
**Replies:** 0\
**Last updated:** [December 25, 2023, 7:40am UTC](https://fortran-lang.discourse.group/t/module-not-found-in-project/7045 "2023-12-25T07:40:00Z")

</div>

When using a module in my project, it is saying that “Module ‘xx’ not found in project”. But another module which sits in the same directory can be found with no problem. And their .mod files have all been generated. I w…

---

## [Forrtl: severe (408): fort: (11): Subscript #3 of the array XT has value 0 which is less than the lower bound of 1](https://fortran-lang.discourse.group/t/forrtl-severe-408-fort-11-subscript-3-of-the-array-xt-has-value-0-which-is-less-than-the-lower-bound-of-1/7003)

<div class="topic-metadata">

**Author:** [@hamza](https://fortran-lang.discourse.group/u/hamza)\
**Replies:** 2\
**Last updated:** [December 17, 2023, 3:21pm UTC](https://fortran-lang.discourse.group/t/forrtl-severe-408-fort-11-subscript-3-of-the-array-xt-has-value-0-which-is-less-than-the-lower-bound-of-1/7003 "2023-12-17T15:21:48Z")

</div>

I’m running a Fortran visual studio 2022 console application and the Fortran code crashes with “A breakpoint instruction (\_\_debugbreak() statement or a similar call) was executed” and when I press continue it gives me " …

---

## [No variable explorer or call stack when debugging](https://fortran-lang.discourse.group/t/no-variable-explorer-or-call-stack-when-debugging/6649)

<div class="topic-metadata">

**Author:** [@jamestelzrow](https://fortran-lang.discourse.group/u/jamestelzrow)\
**Replies:** 4\
**Last updated:** [November 5, 2023, 8:12am UTC](https://fortran-lang.discourse.group/t/no-variable-explorer-or-call-stack-when-debugging/6649 "2023-11-05T08:12:43Z")

</div>

Hello, I’m getting some unexpected behavior when debugging with gdb and the Modern Fortran plugin. Admittedly, I’m a very new gfortran/gcc/gdb user, so it’s possible that I’m just using something incorrectly. Still, any…

---

## ['self' and 'this' in OO-Fortran](https://fortran-lang.discourse.group/t/self-and-this-in-oo-fortran/6615)

<div class="topic-metadata">

**Author:** [@ormo](https://fortran-lang.discourse.group/u/ormo)\
**Replies:** 33\
**Last updated:** [October 30, 2023, 3:02pm UTC](https://fortran-lang.discourse.group/t/self-and-this-in-oo-fortran/6615 "2023-10-30T15:02:52Z")

</div>

self-this.txt (2.0 KB) LS, As physicist born in the Stone Age (1936) and using Fortran (2018) almost daily, I wish to report to you my chat with ChatGPT of today, 2023-10-09. Please, see attachment. Can you offer any…

---

## [I got a "nan" result in Visual Basic Studio](https://fortran-lang.discourse.group/t/i-got-a-nan-result-in-visual-basic-studio/6628)

<div class="topic-metadata">

**Author:** [@Mahmoud96](https://fortran-lang.discourse.group/u/Mahmoud96)\
**Replies:** 1\
**Last updated:** [October 12, 2023, 2:14pm UTC](https://fortran-lang.discourse.group/t/i-got-a-nan-result-in-visual-basic-studio/6628 "2023-10-12T14:14:35Z")

</div>

I wrote a code in F90, and when I run it using Visual Studio, I get “nan” results, but when I use Microsoft Developer Studio, I get the correct results. why?

---

## [Modern Fortran Error starting fortls error](https://fortran-lang.discourse.group/t/modern-fortran-error-starting-fortls-error/6401)

<div class="topic-metadata">

**Author:** [@pal](https://fortran-lang.discourse.group/u/pal)\
**Replies:** 2\
**Last updated:** [September 20, 2023, 1:40am UTC](https://fortran-lang.discourse.group/t/modern-fortran-error-starting-fortls-error/6401 "2023-09-20T01:40:51Z")

</div>

I keep getting this error, even though I have fortls in my path in .json file. “Modern Fortran Error starting fortls: Check that fortls is in your PATH or that “fortran.fortls.path” is pointing to a fortls binary.”

---

## [Fortls real-8 and double-8 in different folders?](https://fortran-lang.discourse.group/t/fortls-real-8-and-double-8-in-different-folders/6426)

<div class="topic-metadata">

**Author:** [@jxjo](https://fortran-lang.discourse.group/u/jxjo)\
**Replies:** 2\
**Last updated:** [August 31, 2023, 8:00am UTC](https://fortran-lang.discourse.group/t/fortls-real-8-and-double-8-in-different-folders/6426 "2023-08-31T08:00:45Z")

</div>

(this is my first post in this forum. So a warm …) Hello there! … I’m currently trying to (re)setup my Fortran project in VSCode with the ‘Modern Fortran’ extension and ‘Fortls’ for linting. The problem I have is, that…

[Previous page](https://fortran-lang.discourse.group/c/help/vscode/16.md)

[Next page](https://fortran-lang.discourse.group/c/help/vscode/16.md?page=2)
