I have a laravel project with vue in Visual Studio Code, the problem is that all the changes are not saved (therefore they are not seen) ... it only works when I do npm run dev, when compiling everything its when I can see the new changes but, The idea would not be this, but to make a change and see it live (debbugin).
In the pic you can see what i mean....
the code (black square) says "Visita" so:
1- i save the file
2- go to the browser to see the text/button/change
3- you can see in the green square the diference (i cant see the change, thats the problem)
Related
I am trying to format my code using Prettier, but when I try to format it by saving the file, by clicking "Format document with" or by any other way it just doesn't format and the Prettier button turns red and appears this ! icon.
I reinstalled VS Code and Prettier hundreds of times. Any idea of how I can fix this?
Here are the images of what is happening:
Image of the red button:
When I click, it returns to its normal color, but nothing happens
There are two cases here, you're either working on a:
non-Node project (doesn't have package.json) - delete any unnecessary package.json files from current folder and immediate parent folders.
Node.js project (contains package.json file) - Run npm install, or npm install prettier --save-dev (in the terminal at the folder level) if it still doesn't work.
I had the same problem. In my case, I had a useless package.json file in the parent folder, which was causing all the issue. I was working on a simple HTML, CSS and JS project.
So I am wondering how come my IDE1100 is not working. I went to the only question related to this and it was about xamarin, Other Answer, I am not working with xamarin at all. I clicked on the error for more help it said I don't have F1 button workign but it was working then the issues said I didn't have the RazorAssembly.cs or Assembly.cs files were missing. Okay so I did what they told me to do n the link above but unloading and reloading that also did nothing for me. I then ran clean build again then ran a code analysis on the solution and I got all these weird code naming violations and I did not have the originally. It all started from trying to create a new migration because I was changing variable names. I figured well I don't need the database only one person in it and then bam just like that the issue reappeared. I have no clue of what I done to actually create this error. I don't want to restart the whole project again. I am using VS 2022 with MVC project.
So it turns out that it was me that messed up but it would not show my errors at all when I tried to build.
so I clicked on where my mouse is at in the picture and just clicked on the plus sign. It was initially build + intelisense but when I clicked build only it actually showed me an error that was easy to fix. I had to change the view names because I changed them. usually it would show me this error even in build + intelisense this never happened before like wth and you see the name stuff is gone too this is baffeling is this actually normal with vs 2022.
To be more specific:
This project is a sort of demo project that I'm retrofitting. Started this project on Unity 5 LTS and had this issue in the console:
Assertion failed: Assertion failed on expression: 'prefab.IsPrefabParent()'
I have since opened it on 2017 LTS and works exactly the same, so its not because of the version or whatever. There must be some prefab of some sort causing this no?
When I export a build, there's no problem. I open the build and suddenly it seems to freeze on the menu page, none of the button are working (they were working perfectly in-game on unity).
I'm sorry that I don't have much more to go on, I'm not a wizard at Unity. If anyone has even the slightest hunch, let me know! I really want to export a working build :)
On the first compile the project is build correctly and running on both device or simulator. After that if I apply a change on the code and try the Hot Restart and rebuild the app doesn't rebuild and does not show the new modification.
Even if I try flutter clean in order to clean the solution, Deleting the 'build/' path and flutter run after but the same issue occurs again.
Or rm -rf build && flutter run
I've updated both the Visual Studio Code and Flutter (version 1.9) in order to be up to date retry but does not make any change at all.
I have tried to run the app from Xcode too after flutter clean and get the same issue.
Below I'm attaching a simple print screen in order to show a simple change I've applied on a demo project on the title string value and the solution on the simulator (the same one I get on physical device too) with the code modification, and the app that doesn't rebuild.
P.s: I've check this one too https://github.com/flutter/flutter/issues/17155
And this one https://github.com/flutter/flutter/issues/18736 deleting files in ios/ and android/, running flutter clean, flutter create . in order to recreate the files and at the end flutter run
In your screenshot, the main.dart file appears to be unsaved (it has a dot in the tab). If the changes aren't saved, reloading in the terminal won't apply those changes.
That said, there is a much better way than running flutter run from the Terminal - use F5 (or Debug -> Start Debugging). When running that way, not only to you get a full debugger, you will get hot-reload-on-save as well as other debug functionality and easy access to DevTools!
There's more info on running and debugging in VS Code here:
https://flutter.dev/docs/development/tools/vs-code#running-and-debugging
I have a problem with a live server. When I write SCSS, the live server does not show changes from time to time. If I delete some line of code and paste, it will show changes sometimes.
I have checked #import, all is connected. I also checked _ for SASS files. Just updated WebStorm to the latest version (using it for Front End).
What might be the issue?