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

Problem with compiling #69

Open
BartlomiejBuczek opened this issue Jan 12, 2023 · 18 comments
Open

Problem with compiling #69

BartlomiejBuczek opened this issue Jan 12, 2023 · 18 comments

Comments

@BartlomiejBuczek
Copy link

Installed product versions

  • Visual Studio: [17.4.4]
  • This extension: [example 1.14.10]

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
Copy link
Owner

failwyn commented Jan 12, 2023

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
Copy link
Author

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

@failwyn
Copy link
Owner

failwyn commented Jan 12, 2023

Whichever one suits your project.

@BartlomiejBuczek
Copy link
Author

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
Copy link
Owner

failwyn commented Jan 12, 2023

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

@BartlomiejBuczek
Copy link
Author

how do i post a project?

@BartlomiejBuczek
Copy link
Author

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

@failwyn
Copy link
Owner

failwyn commented Jan 14, 2023

What project type does it not work with?

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

@BartlomiejBuczek
Copy link
Author

BartlomiejBuczek commented Jan 15, 2023

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
Copy link
Owner

failwyn commented Jan 16, 2023

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

@BartlomiejBuczek
Copy link
Author

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
Copy link
Owner

failwyn commented Jan 16, 2023

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
Copy link
Author

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
Copy link
Owner

failwyn commented Jan 16, 2023

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
Copy link
Author

BartlomiejBuczek commented Jan 16, 2023

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

@failwyn
Copy link
Owner

failwyn commented Jan 16, 2023

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
Copy link
Author

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
Copy link
Owner

failwyn commented Jan 17, 2023

Try following these steps

#63 (comment)

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

2 participants