Skip to content

Tailwind CSS Intellisense does not work on Django project + django-tailwind #1312

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

Open
IgorArnaut opened this issue Apr 12, 2025 · 10 comments
Open

Comments

@IgorArnaut
Copy link

IgorArnaut commented Apr 12, 2025

What version of VS Code are you using?
v1.99.2

What version of Tailwind CSS IntelliSense are you using?
v0.14.15

What version of Tailwind CSS are you using?
v4.1.0

What package manager are you using?
npm

What operating system are you using?
Windows 11 64-bit

Tailwind config

export const content = [
    // Templates within theme app (e.g. base.html)
    "../templates/**/*.html",
    // Templates in other apps
    "../../**/templates/*.html",
    // Ignore files in node_modules
    "!../../**/node_modules",
];

VS Code settings

{
    "[django-html]": {
        "editor.defaultFormatter": "junstyle.vscode-django-support"
    },
    "tailwindCSS.includeLanguages": {
        "plaintext": "django-html",
        "django-html": "html",
    }
}

Describe your issue
I've installed django-tailwind to my existing Django project following instructions from https://django-tailwind.readthedocs.io/en/latest/installation.html. I've also installed junstyle's Django Template Support and your Tailwind CSS Intellisense extensions to VS Code.

Folder structure:

└── 📁Django Real Estate Listings Web
    └── 📁.vscode
        └── settings.json
    └── 📁listings
        └── __init__.py
        └── admin.py
        └── apps.py
        └── 📁fixtures
            └── items.json
        └── forms.py
        └── 📁migrations
            └── __init__.py
            └── 0001_initial.py
            └── 0002_alter_listing_updated_at.py
        └── models.py
        └── services.py
        └── 📁templates
            └── base.html
            └── create.html
            └── detail.html
            └── index.html
            └── 📁partials
                └── __apartment.html
                └── __building.html
                └── __form.html
                └── __search.html
                └── __terms.html
            └── search.html
            └── update.html
        └── tests.py
        └── urls.py
        └── views.py
    └── 📁realestate
        └── __init__.py
        └── asgi.py
        └── settings.py
        └── urls.py
        └── wsgi.py
    └── 📁theme
        └── __init__.py
        └── apps.py
        └── 📁static
        └── 📁static_src
            └── .gitignore
            └── package-lock.json
            └── package.json
            └── postcss.config.js
            └── 📁src
                └── styles.css
            └── tailwind.config.js
            └── 📁css
    └── db.sqlite3
    └── manage.py

listings/templates/base.html:

{% load static tailwind_tags %}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title class="">
      {% block title %}

      {% endblock %}
    </title>
    {% tailwind_css %}
  </head>
  <body>
    {% block content %}

    {% endblock %}
  </body>
</html>

Tailwind CSS Intellisense doesn't work in Django project. No suggested classes appear when typing in class attributes.

@IgorArnaut
Copy link
Author

Anyone???

@moloko
Copy link

moloko commented Apr 22, 2025

@IgorArnaut seems like the last two releases of this extension aren't working well - see #1308, #1309 & #1320

Maybe try installing v0.14.13 as a workaround for now?

@thecrypticace
Copy link
Contributor

thecrypticace commented Apr 22, 2025

@IgorArnaut I'm not seeing this in a freshly set up Django + Tailwind CSS v3 or v4 project in VSCode. I tested on both macOS and Windows:

Image

Could you provide the logs from the command "Tailwind CSS: Show Output" in the command palette? Also a reproduction project would probably be quite helpful here as well.

@IgorArnaut
Copy link
Author

Here: https://github.com/IgorArnaut/Django-TailwindCSS-Problem. Tailwind Intellisense DOES NOT WORK.

@IgorArnaut
Copy link
Author

Output:

[Info  - 6:56:37 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:37 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:37 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:43 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:44 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:44 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:48 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:48 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:48 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:48 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:49 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:49 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:49 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:49 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:49 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:50 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:50 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:50 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:50 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:50 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:50 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:50 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:50 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:51 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:51 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:51 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:51 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:51 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:51 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:51 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:51 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:51 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:51 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:51 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:52 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:52 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:52 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:53 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:53 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:53 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:53 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:53 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:53 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:54 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:54 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:54 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:54 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:54 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:54 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:54 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:54 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:54 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:54 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:54 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:55 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:55 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:55 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:55 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:55 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:55 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:56 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:56 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:56 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:57 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 6:56:57 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}

@thecrypticace
Copy link
Contributor

thecrypticace commented Apr 25, 2025

So I can only reproduce this not working under the following scenario:

  • I clone the repo
  • I do NOT run npm install
  • I open VSCode, navigate to listings/templates/index.html
  • I try to get completions inside class="…"

This happens because of a few things:

  1. There's no detectable Tailwind CSS installation
  2. You have a tailwind.config.js file without @config in the CSS file
  3. The paths in the config file are kinda wrong because Tailwind CSS config file paths in v3 are relative from the current working directory by default (but this is changable)

So what happens is IntelliSense thinks this is likely a v3 project, reads the content paths, think's they're relative to the project root, and then fails to match any file against those content paths.

The fix for this, given that you're using v4 is to:

  1. Make sure you npm install in static_src
  2. Delete the config file
  3. Adjust the styles.css file to explicitly list your content paths like the config file had:
@import "tailwindcss";

/* Templates within theme app (e.g. base.html) */
@source "../../templates/**/*.html";

/* Templates in other apps */
@source "../../../**/templates/*.html";

/**
  * A catch-all path to Django template files, JavaScript, and Python files
  * that contain Tailwind CSS classes and will be scanned by Tailwind to generate the final CSS file.
  *
  * If your final CSS file is not being updated after code changes, you may want to broaden or narrow
  * the scope of this path.
  */
@source "../../../**/*.{html,py,js}";

/* Ignore files in node_modules */
@source not "../../../**/node_modules";

I created a PR against your repo with those changes here: IgorArnaut/Django-TailwindCSS-Problem#1

@IgorArnaut
Copy link
Author

IgorArnaut commented Apr 25, 2025

The fix for this, given that you're using v4 is to:

  1. If there is node_modules folder inside static_src, then Tailwind is installed.
  2. Deleted the config file.
  3. Adjusted styles.css.

Tailwind Intellisense still won't work.

@thecrypticace
Copy link
Contributor

Can you provide the output from "Tailwind CSS: Show Output" please? Not just the "No matching project for document" but the entirety of it? It should start something similar to this:

Locating server…
Booting server...
Setting up server…
Listening for messages…
Searching for Tailwind CSS projects in the workspace's folders.
{"tailwind":{"version":"4.1.1","features":["css-at-theme","layer:base","content-list","source-inline","source-not"],"isDefaultVersion":true},"path":"c:/Users/jordanpittman/Desktop/Django-TailwindCSS-Problem/theme/static_src/src/styles.css"}
[Global] Creating projects: [{"folder":"C:\\Users\\jordanpittman\\Desktop\\Django-TailwindCSS-Problem","config":"C:/Users/jordanpittman/Desktop/Django-TailwindCSS-Problem/theme/static_src/src/styles.css","selectors":[{"pattern":"C:/Users/jordanpittman/Desktop/Django-TailwindCSS-Problem/theme/static_src/src/styles.css","priority":0},{"pattern":"C:/Users/jordanpittman/Desktop/Django-TailwindCSS-Problem/theme/static_src/src/**","priority":2},{"pattern":"C:/Users/jordanpittman/Desktop/Django-TailwindCSS-Problem/theme/static_src/**","priority":4},{"pattern":"C:/Users/jordanpittman/Desktop/Django-TailwindCSS-Problem/**","priority":5}],"user":false,"tailwind":{"version":"4.1.1","features":["css-at-theme","layer:base","content-list","source-inline","source-not"],"isDefaultVersion":true}}]
[Global] Preparing projects...
[Global] Initializing projects...
[theme\static_src\src\styles.css] Initializing...
[Global] Adding watch patterns: C:/Users/jordanpittman/Desktop/Django-TailwindCSS-Problem/theme/static_src/src/styles.css, C:/Users/jordanpittman/Desktop/Django-TailwindCSS-Problem/theme/static_src/src, C:/Users/jordanpittman/Desktop/Django-TailwindCSS-Problem/theme/static_src, C:/Users/jordanpittman/Desktop/Django-TailwindCSS-Problem/theme, C:/Users/jordanpittman/Desktop/Django-TailwindCSS-Problem, C:/Users/jordanpittman/Desktop, C:/Users/jordanpittman, C:/Users, C:/

@IgorArnaut
Copy link
Author

Output:

Locating server…
Booting CSS server for Tailwind CSS language mode
Booting server...
Setting up server…
Listening for messages…
Searching for Tailwind CSS projects in the workspace's folders.
{"tailwind":{"version":"4.1.1","features":["css-at-theme","layer:base","content-list","source-inline","source-not"],"isDefaultVersion":true},"path":"d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind/app_template_v4/{{cookiecutter.app_name}}/static_src/src/styles.css"}
{"tailwind":{"version":"3.4.17","features":["layer:base","separator:root","content-list","jit","css-at-config-as-project","relative-content-paths","transpiled-configs"],"isDefaultVersion":true},"path":"d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind/app_template_v3/{{cookiecutter.app_name}}/static_src/tailwind.config.js"}
{"tailwind":{"version":"4.1.1","features":["css-at-theme","layer:base","content-list","source-inline","source-not"],"isDefaultVersion":true},"path":"d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind/app_template_v3/{{cookiecutter.app_name}}/static_src/src/styles.css"}
[Warn  - 9:07:41 PM] The config d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind/app_template_v3/{{cookiecutter.app_name}}/static_src/src/styles.css looks like it might be for a different Tailwind CSS version. Skipping.
{"tailwind":{"version":"4.1.4","features":["css-at-theme","layer:base","content-list","source-inline","source-not"],"isDefaultVersion":false},"path":"d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/static_src/src/styles.css"}
[Global] Creating projects: [{"folder":"D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App","config":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind/app_template_v3/{{cookiecutter.app_name}}/static_src/tailwind.config.js","selectors":[{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind/app_template_v3/{{cookiecutter.app_name}}/static_src/tailwind.config.js","priority":0},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind/app_template_v3/{{cookiecutter.app_name}}/static_src/**","priority":3}],"user":false,"tailwind":{"version":"3.4.17","features":["layer:base","separator:root","content-list","jit","css-at-config-as-project","relative-content-paths","transpiled-configs"],"isDefaultVersion":true}},{"folder":"D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App","config":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/static_src/src/styles.css","selectors":[{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/static_src/src/styles.css","priority":0},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/static_src/package.json","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/static_src/postcss.config.js","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/static_src/src/styles.css","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/admin.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/apps.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/forms.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/migrations/0001_initial.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/migrations/0002_alter_listing_updated_at.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/migrations/0003_alter_building_garage.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/migrations/__init__.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/models.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/services.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/create.html","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/detail.html","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/index.html","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/partials/__apartment.html","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/partials/__building.html","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/partials/__form.html","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/partials/__search.html","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/partials/__terms.html","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/search.html","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/update.html","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/tests.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/urls.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/views.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/manage.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/realestate/asgi.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/realestate/settings.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/realestate/urls.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/realestate/wsgi.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/apps.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/templates/base.html","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/__init__.py","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/{**/*.html,**/*.js,**/*.py,**/templates/*.html}","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/static_src/*","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/static_src/src/**/*.{aspx,astro,cjs,css,cts,eex,erb,gjs,gts,haml,handlebars,hbs,heex,html,jade,js,json,jsx,liquid,md,mdx,mjs,mts,mustache,njk,nunjucks,php,pug,py,razor,rb,rhtml,rs,slim,svelte,tpl,ts,tsx,twig,vue}","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/templates/**/*.html","priority":1},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/static_src/src/**","priority":2},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/static_src/**","priority":4}],"user":false,"tailwind":{"version":"4.1.4","features":["css-at-theme","layer:base","content-list","source-inline","source-not"],"isDefaultVersion":false}},{"folder":"D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App","config":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind/app_template_v4/{{cookiecutter.app_name}}/static_src/src/styles.css","selectors":[{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind/app_template_v4/{{cookiecutter.app_name}}/static_src/src/styles.css","priority":0},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind/app_template_v4/{{cookiecutter.app_name}}/static_src/src/**","priority":2},{"pattern":"D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind/app_template_v4/{{cookiecutter.app_name}}/static_src/**","priority":4}],"user":false,"tailwind":{"version":"4.1.1","features":["css-at-theme","layer:base","content-list","source-inline","source-not"],"isDefaultVersion":true}}]
[Global] Preparing projects...
[Global] Adding watch patterns: D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind/app_template_v3/{{cookiecutter.app_name}}/static_src/tailwind.config.js, D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind/app_template_v3/{{cookiecutter.app_name}}/static_src, D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind/app_template_v3/{{cookiecutter.app_name}}, D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind/app_template_v3, D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages/tailwind, D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib/site-packages, D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv/Lib, D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/venv, D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App, D:/Documents/_Igor/Projekti/_Master, D:/Documents/_Igor/Projekti, D:/Documents/_Igor, D:/Documents, D:/
[Global] Initializing projects...
[theme\static_src\src\styles.css] Initializing...
[Global] Adding watch patterns: D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/static_src/src/styles.css, D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/static_src/src, D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme/static_src, D:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/theme
[theme\static_src\src\styles.css] supported features: ["css-at-theme","layer:base","content-list","source-inline","source-not"]
[theme\static_src\src\styles.css] Loaded tailwindcss v4.1.4: d:\Documents\_Igor\Projekti\_Master\Django Real Estate Listings App\theme\static_src\node_modules\tailwindcss
[theme\static_src\src\styles.css] Building...
[Global] Adding watch patterns: d:\Documents\_Igor\Projekti\_Master\Django Real Estate Listings App\theme\static_src\node_modules\tailwindcss\index.css
[Info  - 9:07:43 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Global] Initialized 1 projects
[Info  - 9:07:45 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:07:45 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:07:45 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:07:46 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:07:46 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:07:46 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:07:47 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:12 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:12 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:12 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:13 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:13 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:13 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:14 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:14 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:14 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:14 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:15 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:15 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:15 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:15 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:15 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:16 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:16 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:16 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:16 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:17 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:17 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:17 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:17 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:17 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:17 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:17 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:17 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:17 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:17 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:18 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}
[Info  - 9:08:18 PM] [GLOBAL] No matching project for document {
  fsPath: 'D:\\Documents\\_Igor\\Projekti\\_Master\\Django Real Estate Listings App\\listings\\templates\\base.html',
  normalPath: '/d:/Documents/_Igor/Projekti/_Master/Django Real Estate Listings App/listings/templates/base.html'
}

@thecrypticace
Copy link
Contributor

thecrypticace commented Apr 25, 2025

Ah, okay! I think I know that the issue is. You're using a python virtual environment and it places the environment into the project directory so VSCode sees it as part of the workspace. But that folder is full of templates and stuff depending on which modules you have installed (for example django-tailwindcss).

Drop this into your user or workspace settings JSON in VSCode and that'll hopefully resolve the issue:

"tailwindCSS.files.exclude": [
  // IntelliSense default exclude settings
  "**/.git/**", "**/node_modules/**", "**/.hg/**", "**/.svn/**",
  
  // Also ignore my python virtual environment
  "**/venv/**",
]

We should probably add this to our default exclude settings

thecrypticace added a commit that referenced this issue May 8, 2025
IntelliSense, by default, ignores files for:
- Version control (`.git`, `.hg`, `.svn`)
- NPM (`node_modules`)

I'm adding three more groups to this:
- Python virtual environment folders (`.venv`, `venv`)
- Yarn v2+ metadata & caches (`.yarn`)
- *some* build caches (`.next`, `.turbo`, `.parcel-cache`,
`__pycache__`)

Discovered that we should update these when triaging #1312 (that one was
specifically about python virtual envs)
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

No branches or pull requests

3 participants