|
Thanks, but as someone said above, for them it was ReSharper, and I strongly suspect for me as well. I've told R# to ignore Razor files when analyzing. Any rare false errors when editing plane C# vanish after a few seconds. Razor is the only place I these errors take hours to go away, or don't, but my app still works fine.
Intellisense is another troubled tool for me, even in plain C# files. As has been suggested, I will try clearing the Intellisence db as soon as I know where to find this database.
"'Do what thou wilt...' is to bid Stars to shine, Vines to bear grapes, Water to seek its level; man is the only being in Nature that has striven to set himself at odds with himself."
—Aleister Crowley
|
|
|
|
|
I can't recall exactly where that database is kept these days, but I know for certain it isn't in the view with the project files. I suspect that's part of intellisense's problem since I've had major intellisense issues if I ever open two instances of VS -- the database is in a file that all instances of visual studio access, so they clobber each other's database. I don't run multiple instances of VS for anything these days if I can help it.
Perhaps Resharper made a similar design decision and suffers from a similar pitfall.
|
|
|
|
|
I've had that with WinForm recently, but only when changing branch in Git. It doesn't always happen, but sometimes everything would compile and run, but I would see errors in the error window. Stopping VS, removing the .suo file(s) and starting VS again would fix the issue.
|
|
|
|
|
I get no errors in the error window, just underlines and squigglies.
"'Do what thou wilt...' is to bid Stars to shine, Vines to bear grapes, Water to seek its level; man is the only being in Nature that has striven to set himself at odds with himself."
—Aleister Crowley
|
|
|
|
|
I've used most C# projects of VS2017 since release and I only encountered this once; when my IntelliSense database failed to synchronize with one of our automated backup solutions.
So.. I'm guessing it's either a bug in the newer ASP projects or it depends on an external factor.
Have you considered eliminating plugins, extensions and non-typical project settings?
Have you properly debugged your own Visual Studio environment?
A bug is a bug. Just fix it like the rest of 'em.
|
|
|
|
|
Touché. I have done only superficial debugging of VS and extensions. But I now have a small gig to do, and this debugging will have to wait until I finish that. At least I can just ignore the visually apparent syntax errors; everything still builds and works fine.
"'Do what thou wilt...' is to bid Stars to shine, Vines to bear grapes, Water to seek its level; man is the only being in Nature that has striven to set himself at odds with himself."
—Aleister Crowley
|
|
|
|
|
This happened to me about a year ago specifically for razor files. It turned out in my case that it was resharpers syntax highlighting that didn't support razor in mvc core projects yet. I disabled resharper for razor files (somewhere in resharper settings you can tell it to ignore .cshtml files) and all the crazy squiggles went away.
|
|
|
|
|
when it happens to me, I change a character in the model for the razor file, usually in the first line of the file, hit enter and save the file, this triggers some background recompilation and checks and after a few moments the squiggles go away
|
|
|
|
|
Have not seen this, but I don't do web/razor view stuff so maybe I'm avoiding it.
|
|
|
|
|
Oh yes, you are avoiding it big time.
"'Do what thou wilt...' is to bid Stars to shine, Vines to bear grapes, Water to seek its level; man is the only being in Nature that has striven to set himself at odds with himself."
—Aleister Crowley
|
|
|
|
|
Agreed. It's distracting. What I hate most is when I am typing a command and get line after line of "errors" simply because the command isn't complete. I use VB but I assume this also happens in C#.
Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.
|
|
|
|
|
Gawd! Then my problem pales in comparison to yours. I hardly get many errors in C#, mostly Razor.
"'Do what thou wilt...' is to bid Stars to shine, Vines to bear grapes, Water to seek its level; man is the only being in Nature that has striven to set himself at odds with himself."
—Aleister Crowley
|
|
|
|
|
Actually having fun with vue.js[^] (which someone recommended to Sander here in response to his frustration with Angular) - found this on their Discord-channel:
Web-App visualized - Image on Discord-CDN[^]
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
Cool, after converting my angular app to a react app to a knockout app I can now change it to vue. How do people get so good at spotting gaps in the market? A js model binding framework, where do they get their ideas?
|
|
|
|
|
|
Sascha Lefèvre wrote: frustration with Angular Keep in mind, I only have experience with Angular 1.x but some development principles will never change. And that is, anything gets easier the longer the you stick with it and master it. That's the problem with the web frameworks out there today... they change so much that nobody really spends time to learn one.
I don't consider myself an Angular 1.x guru and I'd much more prefer React, but the more I used Angular in projects the more I figured out how to use Angular in projects. If that makes sense.
I think the problem isn't so much the frameworks, it's that people don't devote the time required to actually learn one these days. We just fart around with it until it's time to move on to the next shiny one.
Jeremy Falcon
|
|
|
|
|
Jeremy Falcon wrote: I think the problem isn't so much the frameworks, it's that people don't devote the time required to actually learn one these days
Jeremy Falcon wrote: they change so much that nobody really spends time to learn one.
There in lies the problem for me, I don't do a lot of web dev, its not something I enjoy. However, when it takes a year for the web developers to complete a website, I get asked to go "bang something out". I have looked at some of the newer frameworks, and they just seem to make it more complicated than dropping a few controls on the screen, adding in my data layer, and binding it back to the database (webforms). Not that I wouldn't mind learning something new as I am sure at some point web forms will go the way of the Windows Phone. Just don't want to spend my life in some never ending cycle of framework of the minute.
Common sense is admitting there is cause and effect and that you can exert some control over what you understand.
|
|
|
|
|
Oh come on, spinning around in circles is fun man. #sarcasm
I still feel the same away about Node et al since it's radically different too. The openness of the web is a double-edged sword. 'Fraid only way to deal with it is one step at a time.
Jeremy Falcon
|
|
|
|
|
Jeremy Falcon wrote: 'Fraid only way to deal with it is one step
Nothing like tip toeing through the mine field...
Common sense is admitting there is cause and effect and that you can exert some control over what you understand.
|
|
|
|
|
Jeremy Falcon
|
|
|
|
|
Out of curiosity, what do you like about it in comparison to React? At first glance it seems to have gotten rid of a manual shouldComponentUpdate , which is nice. But if I'm knee-deep in React world right now, is there anything that would make me want to switch over?
Jeremy Falcon
|
|
|
|
|
Sorry if I gave a false impression - I'm actually a complete JS-framework-noob I meant to learn some framework and then gave vue.js the first go after seeing that recommendation.
I dug out that thread from Sander for you in case you want to take a look: The Lounge[^]
And maybe @Super-Lloyd (who gave the recommendation) can answer your question here
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
Having read the thread, I totally agree what was said about Angular. It is overly complicated, but you can still make it do stuff the more you use it. Then again, I've only used 1.x so maybe it got worse. Who knows.
Jeremy Falcon
|
|
|
|
|
What I like with VueJS it's almost the same as normal data binding in WPF!
|
|
|
|
|