# Modern Fortran Acting Odd

**URL:** <https://fortran-lang.discourse.group/t/modern-fortran-acting-odd/7194>\
**Category:** Visual Studio Code\
**Created:** [January 14, 2024, 4:14pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-acting-odd/7194 "2024-01-14T16:14:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![EthanKletschke](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@EthanKletschke](https://fortran-lang.discourse.group/u/EthanKletschke)\
**Post date:** [January 14, 2024, 4:14pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-acting-odd/7194/1 "2024-01-14T16:14: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 after I save now. And a couple of days ago, I installed fprettify to format my F90 source code, and it worked beautifully. But I tried formatting today, and it just stopped working, and said it’d download findent using pip.

Does anybody face the same issue, or have a fix/alternative for this extension?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![gnikit](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/gnikit/32/1213_2.png) [@gnikit](https://fortran-lang.discourse.group/u/gnikit)\
**Post date:** [January 14, 2024, 4:35pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-acting-odd/7194/2 "2024-01-14T16:35:15Z")

</div>

Welcome @EthanKletschke to Fortran-lang.

I saw your review on the VS Code store, but I will respond here to keep the conversation in one place.  
There haven’t been any changes to the extension in the last 2 months (other than security updates).  
It sounds like something changed(or became deprecated) in your system.

Can you please post more details like:

- OS
- Extension version
- Version of VS Code
- version of Python

and any other information that would make your problem traceable and reproducible.

---

<div class="post-metadata">

**Author:** ![EthanKletschke](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@EthanKletschke](https://fortran-lang.discourse.group/u/EthanKletschke)\
**Post date:** [January 15, 2024, 2:18pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-acting-odd/7194/3 "2024-01-15T14:18:02Z")

</div>

Hello, @gnikit, thanks for responding. I think the problem is Python, because  
I’m on Windows 10, using the release version of the extension (i don’t know the exact version, unfortunately), the latest version of VS Code, but my Python installation has been acting weird for a while now. I’ll try check that and get back to you!

I appreciate the response, and sorry for the one-star review!

---

<div class="post-metadata">

**Author:** ![EthanKletschke](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@EthanKletschke](https://fortran-lang.discourse.group/u/EthanKletschke)\
**Post date:** [January 15, 2024, 2:34pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-acting-odd/7194/4 "2024-01-15T14:34:08Z")

</div>

Reinstalled Python (3.12.1), and it’s acting fine (pip works fine, etc.), but no luck with Modern Fortran and the formatters…

I’m gonna try turn off all my extensions except Modern Fortran (and whatever other extensions it needs), and see if THAT works.

---

<div class="post-metadata">

**Author:** ![gnikit](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/gnikit/32/1213_2.png) [@gnikit](https://fortran-lang.discourse.group/u/gnikit)\
**Post date:** [January 15, 2024, 2:40pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-acting-odd/7194/5 "2024-01-15T14:40:25Z")

</div>

The version of the extension can be found here (see next to **Modern Fortran** )

 ![image](https://global.discourse-cdn.com/free1/uploads/fortran_lang/original/2X/6/64955f8f0dac95d6b926dbddc238d9cce3a45815.png)

and the version of VS Code can be found in _Help\>About_, mine is:

![image](https://global.discourse-cdn.com/free1/uploads/fortran_lang/original/2X/f/f0f8ca1b417b3f52cddd8edde46ee2234744287d.png)

For the formatters you might need to point directly at the formatter’s .exe, Windows has some issues with auto-detecting Python executables installed via pip since the install location is not in $PATH by default.

---

<div class="post-metadata">

**Author:** ![EthanKletschke](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@EthanKletschke](https://fortran-lang.discourse.group/u/EthanKletschke)\
**Post date:** [January 15, 2024, 2:43pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-acting-odd/7194/6 "2024-01-15T14:43:28Z")

</div>

I got this for my VS Code,  
 ![image](https://global.discourse-cdn.com/free1/uploads/fortran_lang/original/2X/c/c0e1d54e20e9e6825c6a131a56cabe68a02706de.png)  
and my Modern Fortran Version is v3.2.0.

---

<div class="post-metadata">

**Author:** ![gnikit](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/gnikit/32/1213_2.png) [@gnikit](https://fortran-lang.discourse.group/u/gnikit)\
**Post date:** [January 15, 2024, 2:46pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-acting-odd/7194/7 "2024-01-15T14:46:48Z")

</div>

> [@EthanKletschke](#):
>
> and my Modern Fortran Version is v3.2.0.

Your formatters should be able to work (assuming they are installed and pointed to in your settings).

---

<div class="post-metadata">

**Author:** ![gnikit](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/gnikit/32/1213_2.png) [@gnikit](https://fortran-lang.discourse.group/u/gnikit)\
**Post date:** [January 15, 2024, 4:18pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-acting-odd/7194/8 "2024-01-15T16:18:53Z")

</div>

@EthanKletschke Could I please ask you, since the problem was external to our extension and related to your Python installation, to edit or delete you Modern Fortran review in the VS Code store.

---

<div class="post-metadata">

**Author:** ![EthanKletschke](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@EthanKletschke](https://fortran-lang.discourse.group/u/EthanKletschke)\
**Post date:** [January 15, 2024, 4:56pm UTC](https://fortran-lang.discourse.group/t/modern-fortran-acting-odd/7194/9 "2024-01-15T16:56:51Z")

</div>

Yes of course! I’ll do that now!
