Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Lag spikes/freezes when using multiline String in ps1 file

    Help wanted · · · – – – · · ·
    2
    2
    35
    Loading More Posts
    • 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.
    • Kevin Holtkamp
      Kevin Holtkamp last edited by

      Hey everyone, sorry if this is the wrong place to post this, i am new here.

      In my powershell script i have a multiline String like this:

      @" 
      string content
      "@
      

      Since i added that, i had those lag spikes/freezes where the program would freeze for a second. Since i removed the string, the problem dissapeared.
      I have the language set to powershell, so it highlights keywords etc., so i suspect that somewhere in that highlighting, there is a point where it hangs at multiline strings.

      PeterJones 1 Reply Last reply Reply Quote 0
      • PeterJones
        PeterJones @Kevin Holtkamp last edited by

        @Kevin-Holtkamp said in Lag spikes/freezes when using multiline String in ps1 file:

        @"
        string content
        "@

        With a powershell file with just that content, I don’t notice any lag / freezes. My guess is something else is going on.

        Please go to the ? menu, select Debug Info, and paste the results into the forum.

        Also, see if it freezes for you when all you have in your powershell file is

        @" 
        string content
        "@
        

        If it does freeze from just that, let us know. If not, there is going to have to be more debug.

        My guess is something else is going on: either it’s because of a really long file, or because of one or more plugins, or both. (There could also be many things I haven’t considered.)

        1 Reply Last reply Reply Quote 3
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors