“No such module” in CLion for Swift on Linux

Max Großmann
Oct 16, 2020

Today a want to talk about a bug in CLion. The Bug is present on the Ubuntu Subsystem for Windows and on Arch Linux. I guess that this bug is also present on more linux distributions.

Photo by Annelie Turner on Unsplash

Bug description

When Using the Package manager on linux, i sometimes get the following error in CLion.

Interestingly i can nevertheless go to the OpenCombine module via CTRL+Leftclick, so it seems that it is only a visual error.

The JetBrains Team is aware of this bug: https://youtrack.jetbrains.com/issue/OC-20766

Until the fix is published, i want to share the provided workaround.

Workaround

Go to File → Settings → Editor → Inspections and disable the “Sourcekit Inspections” under the Swift category.

Klick OK and Restart CLion.

Now the Error-Message is gone and Code-Autocompletion works still.

--

--