failwyn / WebCompiler

Visual Studio extension for compiling LESS and Sass files
Other
77 stars 16 forks source link

Problem with compiling #69

Open BartlomiejBuczek opened 1 year ago

BartlomiejBuczek commented 1 year ago

Installed product versions

Current behavior

I have downloaded and instaled the extention although it doesn't show me the options to compile my files.

Expected behavior

I should be able to compile my files image image

failwyn commented 1 year ago

You need to have a project and you need to follow the Getting Started guide on the main page, the extension does not do anything without the compilerconfig.json file.

BartlomiejBuczek commented 1 year ago

which project should I use for creating a front end/back end web page?

failwyn commented 1 year ago

Whichever one suits your project.

BartlomiejBuczek commented 1 year ago

image image i still have a problem, in translation the error says: "the system cannot find the path specified" or something like this, what should I do now?

failwyn commented 1 year ago

Can you post your project so that I can replicate the issue?

BartlomiejBuczek commented 1 year ago

how do i post a project?

BartlomiejBuczek commented 1 year ago

basicaly that is why I asked which project would fit web design the best because it doesn't work on particular default projects.

failwyn commented 1 year ago

What project type does it not work with?

Zip the project, click the image button, choose the zip file.

BartlomiejBuczek commented 1 year ago

WebApplication1.zip Are you able to open this file? I zipped my project and it won't open on my computer now. Also the compiler file doesn't show itself on any of the projects at the moment.

failwyn commented 1 year ago

The zip file only contains the .sln file and the .vs directory.

BartlomiejBuczek commented 1 year ago

WebApplication1 (2).zip ok, so I think this should work, however I'm still not able to work with any type of project. Every different default project which I start is created without compilerconfig.json file. It doesn't matter whether it is ASP.NET core web app or API, it is still created without the file.

failwyn commented 1 year ago

The project you posted is working exactly how you have it configured. When I save the scss file, it compiles successfully and the css file is created. Do you have file nesting enabled in Visual Studio?

The compilerconfig.json is created when you right click a compatible file and select WebCompiler > Compile File. It would be overly invasive to create it in projects automatically.

BartlomiejBuczek commented 1 year ago

ok, but now i get this error which says that the system cannot find the specified path. What could be the problem? And should I have file nesting on or off? (it doesn't work with it nor without it)

failwyn commented 1 year ago

File nesting is a personal preference, it has no effect on the functionality of the extension.

I need specific details to help; what file cannot be found? What did you change from the project you sent which is working as expected? I can only help if I can replicate your issue.

BartlomiejBuczek commented 1 year ago

the stylesheet1.scss file cannot be found, and I haven't changed anything.

failwyn commented 1 year ago

What's throwing the file not found error? If WebCompiler cannot find an input file, it will display " Web Compiler found an error in compilerconfig.json". It doesn't display an error in the Error List.

It sounds like you are very new to development, if I were you, I would start with a basic website using html, css, and javascript, ,and get more accustomed to debugging in Visual Studio, then slowly start adding SCSS, TypeScript, MVC, Razor, Angular, React, etc... Identifying what Visual Studio is telling you in the Error list is going to be one of the most important skills you'll learn; debugging is 90% of development.

BartlomiejBuczek commented 1 year ago

yeah but my course is now teaching me about sass and I need to know how to deal with the basics. It is working on my friend's computer as well but there seems to be a problem with mine. I don't even know what this error means and I tried to search for it online but there is no explanation. I don't know if i should stick with manual compiler or should I hard reset my computer at this point.

failwyn commented 1 year ago

Try following these steps

https://github.com/failwyn/WebCompiler/issues/63#issuecomment-1337660475