Git Product home page Git Product logo

Comments (7)

Kurre avatar Kurre commented on June 14, 2024 5

Issue has been fixed by Jetbrains and fix will be included in 2018.1 versions of IDEs.

from discuss.

HellPat avatar HellPat commented on June 14, 2024 3

I stumbled upon the same issue today.
Here a screenshot for clarification, thanks @Kurre that you resaearchedthe Link to youtrack.

bildschirmfoto 2017-11-02 um 11 29 12

from discuss.

swthate avatar swthate commented on June 14, 2024 1

I am using 2018.3 also. If you are using tailwind via Webpack, this may be of use:

I'm not sure, but I think PhpStorm will try to automatically find your Webpack config file based on the default naming convention (webpack.config.js I think), and from that it can figure out all it needs in order to get the code suggestions working. HOWEVER, if your Webpack config file is named differently, then you'll need to inform PhpStorm. It might be a good idea to look into this, regardless if your conf file is named differently or not.

Go to Preferences -> Languages & Frameworks -> JavaScript -> Webpack

From there just point it to your config file, and you should be set! That did the trick for me, at least.

Update:

I thought this fixed it for me, but it didn't take long to realize it in fact did not, but only a few autocomplete suggestions pop up now and then. It works fine in another project where I manually installed Tailwind without Webpack, but when trying to use https://github.com/chasegiunta/craft-vue-tailwind for Craft CMS which sets up Webpack and Tailwind for you, autocomplete does not work..

from discuss.

samuelterra22 avatar samuelterra22 commented on June 14, 2024

same problem in version 2018.2

from discuss.

Kurre avatar Kurre commented on June 14, 2024

Seems to be working as expected for me:
autocomplete-tailwindcss

PhpStorm 2018.2.1
Build #PS-182.3911.43, built on August 8, 2018
Licensed to Tommi Finnilä
Subscription is active until February 3, 2019
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

from discuss.

samuelterra22 avatar samuelterra22 commented on June 14, 2024

I upgraded to 2018.3 EAP and it is not working yet
image

PhpStorm 2018.3 EAP
Build #PS-183.4139.30, built on October 31, 2018
PhpStorm EAP User
Expiration date: November 30, 2018
JRE: 1.8.0_152-release-1343-b15 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-38-generic

from discuss.

LouizFC avatar LouizFC commented on June 14, 2024

For those coming from google like me and still have problems with Tailwind Auto Completion:

I wanted to make Tailwind auto-completion work without building on every change.

I solved it by adding the following to my webpack.config.js file (I am using webpack-dev-server):

devServer: {
    writeToDisk: true
}

I think it's possible to add make it work without writing to disk, but I have not investigated further.

for reference, I got the solution from webpack/webpack-dev-server#1141 (comment)

from discuss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.