Open BartlomiejBuczek opened 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.
which project should I use for creating a front end/back end web page?
Whichever one suits your project.
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?
Can you post your project so that I can replicate the issue?
how do i post a project?
basicaly that is why I asked which project would fit web design the best because it doesn't work on particular default projects.
What project type does it not work with?
Zip the project, click the image button, choose the zip file.
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.
The zip file only contains the .sln file and the .vs directory.
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.
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.
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)
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.
the stylesheet1.scss file cannot be found, and I haven't changed anything.
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.
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.
Try following these steps
https://github.com/failwyn/WebCompiler/issues/63#issuecomment-1337660475
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