Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Who else is sick of the false syntax errors in the VS2017 text editor?

Who else is sick of the false syntax errors in the VS2017 text editor?

Scheduled Pinned Locked Moved The Lounge
csharpasp-netvisual-studioquestionannouncement
38 Posts 23 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Brady Kelly

    We're now on the _n_th update of VS2017, yet since the beginning, mine constantly litters my editor with red underlines and squigglies for things that are correct. The project builds and works, yet the bloody text editor thinks there are 20 errors in one screen of a Razor view .cshtml file. Does anyone else share my feelings on this? Or is this situation unique to my Visual Studio only. I doubt the latter because I have seen this logged for VS2017 a few times.

    "'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

    S Offline
    S Offline
    Super Lloyd
    wrote on last edited by
    #3

    sometimes I use the option "only show build error"

    A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

    1 Reply Last reply
    0
    • B Brady Kelly

      We're now on the _n_th update of VS2017, yet since the beginning, mine constantly litters my editor with red underlines and squigglies for things that are correct. The project builds and works, yet the bloody text editor thinks there are 20 errors in one screen of a Razor view .cshtml file. Does anyone else share my feelings on this? Or is this situation unique to my Visual Studio only. I doubt the latter because I have seen this logged for VS2017 a few times.

      "'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

      R Offline
      R Offline
      Rage
      wrote on last edited by
      #4

      Brady Kelly wrote:

      for things that - you think - are correct

      FTFY ;P

      Do not escape reality : improve reality !

      B R 2 Replies Last reply
      0
      • B Brady Kelly

        We're now on the _n_th update of VS2017, yet since the beginning, mine constantly litters my editor with red underlines and squigglies for things that are correct. The project builds and works, yet the bloody text editor thinks there are 20 errors in one screen of a Razor view .cshtml file. Does anyone else share my feelings on this? Or is this situation unique to my Visual Studio only. I doubt the latter because I have seen this logged for VS2017 a few times.

        "'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

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #5

        I never moved from 2013 - not quite as stable as 2010 but close enough to get work done without random events loosing work or it just going into la-la land. I did try 2015 but it too had 'issues' and ms had way too soon stopped updating it in the rush to push out 2017. Seems they are now too involved adding 'features' to the languages to bother with the IDE. (and let's face it, all those 'brand new' features really do is save is perhaps an extra line or 3 something that cant already be done anyway - and for readability as often those actions probably should be done longhand anyway.) You realise soon it'll be 2018, ms' focus will move off vs2017 and into the already mentioned vs2019 - and just like 2015 (and even 2013 though at least it's safely usable) vs2017 will remain unfinished (no more updates). And yes, 2 years later 2019 too will become ignored and unfinished. I really wish ms would return to a 3+ year major release cycle, they've amply demonstrated they cant manage anything less.

        Installing Signature... Do not switch off your computer.

        C B S 3 Replies Last reply
        0
        • L Lost User

          I never moved from 2013 - not quite as stable as 2010 but close enough to get work done without random events loosing work or it just going into la-la land. I did try 2015 but it too had 'issues' and ms had way too soon stopped updating it in the rush to push out 2017. Seems they are now too involved adding 'features' to the languages to bother with the IDE. (and let's face it, all those 'brand new' features really do is save is perhaps an extra line or 3 something that cant already be done anyway - and for readability as often those actions probably should be done longhand anyway.) You realise soon it'll be 2018, ms' focus will move off vs2017 and into the already mentioned vs2019 - and just like 2015 (and even 2013 though at least it's safely usable) vs2017 will remain unfinished (no more updates). And yes, 2 years later 2019 too will become ignored and unfinished. I really wish ms would return to a 3+ year major release cycle, they've amply demonstrated they cant manage anything less.

          Installing Signature... Do not switch off your computer.

          C Offline
          C Offline
          CodeWraith
          wrote on last edited by
          #6

          Lopatir wrote:

          I really wish ms would return to a 3+ year major release cycle, they've amply demonstrated they cant manage anything less.

          Maybe. Or they just have jumped the shark and friged the nuke.

          I have lived with several Zen masters - all of them were cats.

          1 Reply Last reply
          0
          • B Brady Kelly

            We're now on the _n_th update of VS2017, yet since the beginning, mine constantly litters my editor with red underlines and squigglies for things that are correct. The project builds and works, yet the bloody text editor thinks there are 20 errors in one screen of a Razor view .cshtml file. Does anyone else share my feelings on this? Or is this situation unique to my Visual Studio only. I doubt the latter because I have seen this logged for VS2017 a few times.

            "'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

            N Offline
            N Offline
            Nathan Minier
            wrote on last edited by
            #7

            The only place I encounter that is the annoying XAML tendency to want rebuilds when items are added or namespaces changed. Of course I'm running Resharper, so that might be a factor.

            "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

            B 1 Reply Last reply
            0
            • R Rage

              Brady Kelly wrote:

              for things that - you think - are correct

              FTFY ;P

              Do not escape reality : improve reality !

              B Offline
              B Offline
              Brady Kelly
              wrote on last edited by
              #8

              Well, if I only think they're correct while they're not, why does the website work 100%?

              "'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

              D 1 Reply Last reply
              0
              • L Lost User

                I never moved from 2013 - not quite as stable as 2010 but close enough to get work done without random events loosing work or it just going into la-la land. I did try 2015 but it too had 'issues' and ms had way too soon stopped updating it in the rush to push out 2017. Seems they are now too involved adding 'features' to the languages to bother with the IDE. (and let's face it, all those 'brand new' features really do is save is perhaps an extra line or 3 something that cant already be done anyway - and for readability as often those actions probably should be done longhand anyway.) You realise soon it'll be 2018, ms' focus will move off vs2017 and into the already mentioned vs2019 - and just like 2015 (and even 2013 though at least it's safely usable) vs2017 will remain unfinished (no more updates). And yes, 2 years later 2019 too will become ignored and unfinished. I really wish ms would return to a 3+ year major release cycle, they've amply demonstrated they cant manage anything less.

                Installing Signature... Do not switch off your computer.

                B Offline
                B Offline
                Brady Kelly
                wrote on last edited by
                #9

                Don't get me wrong. Except for this complaint, I absolutely love VS2017. I find it a much more comfortable IDE than VS2015. Then there is C#7, which as far as I know isn't handled by VS2013, and maybe not even VS2015.

                "'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

                1 Reply Last reply
                0
                • N Nathan Minier

                  The only place I encounter that is the annoying XAML tendency to want rebuilds when items are added or namespaces changed. Of course I'm running Resharper, so that might be a factor.

                  "There are three kinds of lies: lies, damned lies and statistics." - Benjamin Disraeli

                  B Offline
                  B Offline
                  Brady Kelly
                  wrote on last edited by
                  #10

                  I never code without ReSharper, so I doubt that's the differentiator.

                  "'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

                  1 Reply Last reply
                  0
                  • B Brady Kelly

                    We're now on the _n_th update of VS2017, yet since the beginning, mine constantly litters my editor with red underlines and squigglies for things that are correct. The project builds and works, yet the bloody text editor thinks there are 20 errors in one screen of a Razor view .cshtml file. Does anyone else share my feelings on this? Or is this situation unique to my Visual Studio only. I doubt the latter because I have seen this logged for VS2017 a few times.

                    "'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

                    F Offline
                    F Offline
                    F ES Sitecore
                    wrote on last edited by
                    #11

                    Brady Kelly wrote:

                    Or is this situation unique to my Visual Studio only

                    Yes, it's you. VS uses the web.config file in the Views folder to determine what assemblies to load to verify your razor code. If you are getting squiggles in the editor it is likely that your Views\web.config file is not correct.

                    B 1 Reply Last reply
                    0
                    • F F ES Sitecore

                      Brady Kelly wrote:

                      Or is this situation unique to my Visual Studio only

                      Yes, it's you. VS uses the web.config file in the Views folder to determine what assemblies to load to verify your razor code. If you are getting squiggles in the editor it is likely that your Views\web.config file is not correct.

                      B Offline
                      B Offline
                      Brady Kelly
                      wrote on last edited by
                      #12

                      MVC Core doesn't have any of the two older web.configs, and I get this problem as soon as I create a new MVC web app project, without adding or changing anything.

                      "'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

                      S 1 Reply Last reply
                      0
                      • B Brady Kelly

                        We're now on the _n_th update of VS2017, yet since the beginning, mine constantly litters my editor with red underlines and squigglies for things that are correct. The project builds and works, yet the bloody text editor thinks there are 20 errors in one screen of a Razor view .cshtml file. Does anyone else share my feelings on this? Or is this situation unique to my Visual Studio only. I doubt the latter because I have seen this logged for VS2017 a few times.

                        "'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

                        M Offline
                        M Offline
                        Marc Clifton
                        wrote on last edited by
                        #13

                        I've never had that problem.

                        Brady Kelly wrote:

                        yet the bloody text editor thinks there are 20 errors in one screen of a Razor view .cshtml file.

                        Ah, yes, there I've noticed that. It's weird, if I let VS mull it over for a few minutes (literally, on this POC machine I have at work) the squiggles go away. I also read somewhere that deleting the PDB files or something, don't remember what, refreshes "stuff" so the editor works again, at least for a while. But then again, the whole idea of mixing server-side code inside an HTML file that is already polluted with Javascript that gets turned into "print" statements with embedded code that is then compiled and executed to generate the HTML, well, I know that was like the coolest thing since sliced bread when people started doing it, and certainly all those script-kiddie languages glommed onto the idea right away, but in actual practice, I find it a horrendous approach. I could elaborate, but I don't think it's necessary.

                        Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                        B S 2 Replies Last reply
                        0
                        • B Brady Kelly

                          We're now on the _n_th update of VS2017, yet since the beginning, mine constantly litters my editor with red underlines and squigglies for things that are correct. The project builds and works, yet the bloody text editor thinks there are 20 errors in one screen of a Razor view .cshtml file. Does anyone else share my feelings on this? Or is this situation unique to my Visual Studio only. I doubt the latter because I have seen this logged for VS2017 a few times.

                          "'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

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #14

                          I use VS 2017 every day and I cannot complain. Heck, Microsoft gave me this excellent IDE for free (At least the Community Edition.) Let's give MS some credit for that! :)

                          Get me coffee and no one gets hurt!

                          R 1 Reply Last reply
                          0
                          • M Marc Clifton

                            I've never had that problem.

                            Brady Kelly wrote:

                            yet the bloody text editor thinks there are 20 errors in one screen of a Razor view .cshtml file.

                            Ah, yes, there I've noticed that. It's weird, if I let VS mull it over for a few minutes (literally, on this POC machine I have at work) the squiggles go away. I also read somewhere that deleting the PDB files or something, don't remember what, refreshes "stuff" so the editor works again, at least for a while. But then again, the whole idea of mixing server-side code inside an HTML file that is already polluted with Javascript that gets turned into "print" statements with embedded code that is then compiled and executed to generate the HTML, well, I know that was like the coolest thing since sliced bread when people started doing it, and certainly all those script-kiddie languages glommed onto the idea right away, but in actual practice, I find it a horrendous approach. I could elaborate, but I don't think it's necessary.

                            Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

                            B Offline
                            B Offline
                            Brady Kelly
                            wrote on last edited by
                            #15

                            I don't mix real "server code" into my Razor pages, only that code that issues the "print statements" you mention.

                            "'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

                            1 Reply Last reply
                            0
                            • R Rage

                              Brady Kelly wrote:

                              for things that - you think - are correct

                              FTFY ;P

                              Do not escape reality : improve reality !

                              R Offline
                              R Offline
                              Rick York
                              wrote on last edited by
                              #16

                              That's not necessarily a fix for him. I find it displaying things IT thinks are wrong but aren't just as often.

                              1 Reply Last reply
                              0
                              • B Brady Kelly

                                We're now on the _n_th update of VS2017, yet since the beginning, mine constantly litters my editor with red underlines and squigglies for things that are correct. The project builds and works, yet the bloody text editor thinks there are 20 errors in one screen of a Razor view .cshtml file. Does anyone else share my feelings on this? Or is this situation unique to my Visual Studio only. I doubt the latter because I have seen this logged for VS2017 a few times.

                                "'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

                                D Offline
                                D Offline
                                dandy72
                                wrote on last edited by
                                #17

                                FWIW, I see this every once in a while in purely C# code (WinForms project), so it's not unique to Razor. I might have legitimate errors, fix them, but the red squigglies don't go away. Sometimes restarting VS makes them go away, but at other times, they persist.

                                1 Reply Last reply
                                0
                                • B Brady Kelly

                                  We're now on the _n_th update of VS2017, yet since the beginning, mine constantly litters my editor with red underlines and squigglies for things that are correct. The project builds and works, yet the bloody text editor thinks there are 20 errors in one screen of a Razor view .cshtml file. Does anyone else share my feelings on this? Or is this situation unique to my Visual Studio only. I doubt the latter because I have seen this logged for VS2017 a few times.

                                  "'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

                                  P Offline
                                  P Offline
                                  patbob
                                  wrote on last edited by
                                  #18

                                  If you were getting this behavior on code, then I'd say your intellisense database is corrupt. Its been a problem in VS ever since they introduced it. I dunno.. maybe intellisense also builds a database for cshtml files too. You might try deleting the old database to force it to regenerate and see if that fixes the problem.

                                  I live in Oregon, and I'm an engineer.

                                  B 1 Reply Last reply
                                  0
                                  • B Brady Kelly

                                    MVC Core doesn't have any of the two older web.configs, and I get this problem as soon as I create a new MVC web app project, without adding or changing anything.

                                    "'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

                                    S Offline
                                    S Offline
                                    S Douglas
                                    wrote on last edited by
                                    #19

                                    Sounds like, broken by design. :rolleyes:


                                    Common sense is admitting there is cause and effect and that you can exert some control over what you understand.

                                    B 1 Reply Last reply
                                    0
                                    • S S Douglas

                                      Sounds like, broken by design. :rolleyes:


                                      Common sense is admitting there is cause and effect and that you can exert some control over what you understand.

                                      B Offline
                                      B Offline
                                      Brady Kelly
                                      wrote on last edited by
                                      #20

                                      Why ever would MS do that? Do they want me to purchase a competing IDE?

                                      "'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

                                      1 Reply Last reply
                                      0
                                      • B Brady Kelly

                                        We're now on the _n_th update of VS2017, yet since the beginning, mine constantly litters my editor with red underlines and squigglies for things that are correct. The project builds and works, yet the bloody text editor thinks there are 20 errors in one screen of a Razor view .cshtml file. Does anyone else share my feelings on this? Or is this situation unique to my Visual Studio only. I doubt the latter because I have seen this logged for VS2017 a few times.

                                        "'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

                                        R Offline
                                        R Offline
                                        Riz Thon
                                        wrote on last edited by
                                        #21

                                        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.

                                        B 1 Reply Last reply
                                        0
                                        • R Riz Thon

                                          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.

                                          B Offline
                                          B Offline
                                          Brady Kelly
                                          wrote on last edited by
                                          #22

                                          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

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups