Skip to content
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

Unable to add less profiles with IntelliJ 2018 #104

Open
Alvaten opened this issue Apr 2, 2018 · 8 comments
Open

Unable to add less profiles with IntelliJ 2018 #104

Alvaten opened this issue Apr 2, 2018 · 8 comments

Comments

@Alvaten
Copy link

Alvaten commented Apr 2, 2018

We are not able to manage LESS profiles since the update of my IntelliJ in 2018.1

The button "new" is missing ! If my project already contain a profile, the plugin continue to works, but in all new project, we are not table to compile de less.

The issue happens for all people wo update the application in my company.

less compiler issue

Thanks in advance

@remitmaster
Copy link

Yes, the problem exists, will there be any improvement?

@remitmaster
Copy link

Temporary solution .idea .idea/lessc/lessc.xml add

<entry key="8">
  <value>
    <LessProfile>
      <option name="compressOutput" value="true" />
      <option name="cssDirectories">
        <list>
          <CssDirectory>
            <option name="path" value="$PROJECT_DIR$" />
          </CssDirectory>
        </list>
      </option>
      <option name="id" value="8" />
      <option name="lessDirPath" value="$PROJECT_DIR$/" />
      <option name="name" value="{ -- name --}" />
    </LessProfile>
  </value>
</entry>

@Grafs
Copy link

Grafs commented Aug 8, 2018

Not work solution. Not show +

@theCanadianHat
Copy link

theCanadianHat commented Oct 9, 2018

I tried the solution @remitmaster suggested. Since there was little direction I viewed my workspace's .idea folder. There was not a lessc folder, but there were folders for other plug-ins in that folder. So I created a folder for lessc and an XML file for the snippet above. I was unable to see the "+" button on the Less Profile option in the preferences. @remitmaster could you expand on the temporary solution you have posted? Since this seems to be the only "solution" to this issue. It being 5 months after this issue was raised.

EDIT:
Adding the base xml file needed in case you add this plugin and don't have any profiles. This was my case which makes the plugin useless.

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="LessManager">
    <option name="lessProfileMap">
      <map>
        <entry key="0">
          
        </entry>
      </map>
    </option>
  </component>
</project>

Use @remitmaster comment for reference of the structure inside the entry tag. Once you have a profile and it gets loaded into Intellij you will be able to edit the values. So you don't have to get the paths right on the first try.

Hope this helps.

@pcornelissen
Copy link

I know this plugin is open source and we have no right to demand support, but any answer would be good, if you don't have time to maintain the plugin, please state so, maybe this will encourage someone else to pick it up.

@kroleternal
Copy link

join the question

@farnott
Copy link

farnott commented Apr 18, 2019

I figured it out! I'm on version 2019.1 of PhpStorm.

The problem only occurs when creating a new project, so I opened the .idea folder of an older project that was working fine with the LESS plugin and copied the lessc folder and pasted it into the .idea folder of my new project. Closed the project in PhpStorm and then reopened it and the Less profile was there - it just needed the profile name, source directory and output directory editing then it worked perfectly!

@arifhussain353
Copy link

arifhussain353 commented Jun 17, 2019

@remitmaster solution worked for me. As he mentioned. You must add your folder (project directory ) to <option name="name" value="{ -- name --}" /> this part.
After this, you can change the path in settings. But still, you will not be able to see the '+' button.

EDIT:
If you don't have lessc folder then create a folder and create a file inside named lessc.xml.

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

8 participants