ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    PS ISE: Unsaved Projects

    IT Discussion
    9
    20
    839
    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.
    • pmonchoP
      pmoncho @stacksofplates
      last edited by

      @stacksofplates said in PS ISE: Unsaved Projects:

      @pmoncho said in PS ISE: Unsaved Projects:

      @stacksofplates said in PS ISE: Unsaved Projects:

      This is what Git is for. Why not just use something like VSCode and have a repo for your powershell stuff?

      Github or Gitlab? Does it matter for simple powershell scripts?

      For what he's doing it doesn't matter.

      GitLab has a lot more features for groups, I like their CI/CD better, and some other niceties. However, in this case it doesn't matter.

      I am the same. Just PS scripts mainly for myself and a couple for work

      1 Reply Last reply Reply Quote 0
      • gjacobseG
        gjacobse @scottalanmiller
        last edited by

        @scottalanmiller said in PS ISE: Unsaved Projects:

        @stacksofplates said in PS ISE: Unsaved Projects:

        This is what Git is for. Why not just use something like VSCode and have a repo for your powershell stuff?

        This is what I was thinking. Who needs to save code today, your GIT servers will handle that automatically.

        I'll admit - I've not looked at Git - yet I think I have an account.

        As for setting up a Git Server? Yea,.. I don't know anything about those - or if one would be permitted in our environment. I happy just having the ability to run PS as I am... and in some cases like the totally vain PS I'm starting now couldn't ever be published to 'public'

        JaredBuschJ 1 stacksofplatesS 3 Replies Last reply Reply Quote 0
        • JaredBuschJ
          JaredBusch @gjacobse
          last edited by JaredBusch

          @gjacobse said in PS ISE: Unsaved Projects:

          As for setting up a Git Server?

          WTF, would make you jump to that from the prior conversation?

          1fd21383-86bc-4bf2-a3e4-b6b08e2cfd7c-image.png

          1 Reply Last reply Reply Quote 0
          • 1
            1337 @gjacobse
            last edited by 1337

            @gjacobse said in PS ISE: Unsaved Projects:

            As for setting up a Git Server? Yea,.. I don't know anything about those - or if one would be permitted in our environment.

            You can use free git "servers" in the cloud, like gitlab.com and github.com, so no need to host your own. Your code doesn't become public because you store it there.

            However you must also install git on your local machine where you are editing the scripts. So that might be a problem for you if you have restricted access over your workstation.

            Git has limitations that adds a lot of complexity in some scenarios.

            1 Reply Last reply Reply Quote 1
            • scottalanmillerS
              scottalanmiller @stacksofplates
              last edited by

              @stacksofplates said in PS ISE: Unsaved Projects:

              @pmoncho said in PS ISE: Unsaved Projects:

              @stacksofplates said in PS ISE: Unsaved Projects:

              This is what Git is for. Why not just use something like VSCode and have a repo for your powershell stuff?

              Github or Gitlab? Does it matter for simple powershell scripts?

              For what he's doing it doesn't matter.

              GitLab has a lot more features for groups, I like their CI/CD better, and some other niceties. However, in this case it doesn't matter.

              I prefer GitLab too. But yeah.

              1 Reply Last reply Reply Quote 0
              • stacksofplatesS
                stacksofplates @gjacobse
                last edited by stacksofplates

                @gjacobse said in PS ISE: Unsaved Projects:

                @scottalanmiller said in PS ISE: Unsaved Projects:

                @stacksofplates said in PS ISE: Unsaved Projects:

                This is what Git is for. Why not just use something like VSCode and have a repo for your powershell stuff?

                This is what I was thinking. Who needs to save code today, your GIT servers will handle that automatically.

                I'll admit - I've not looked at Git - yet I think I have an account.

                As for setting up a Git Server? Yea,.. I don't know anything about those - or if one would be permitted in our environment. I happy just having the ability to run PS as I am... and in some cases like the totally vain PS I'm starting now couldn't ever be published to 'public'

                If you can’t use hosted solutions for whatever reasons you can just use a box with git installed and push to that. You don’t need a full setup like GitLab or GitHub.

                There are other options also: Gitea, Gogs, etc.

                1 Reply Last reply Reply Quote 0
                • ObsolesceO
                  Obsolesce @gjacobse
                  last edited by Obsolesce

                  @gjacobse

                  choco install git vscode /y

                  or if you prefer
                  winget install git.git
                  winget install vscode

                  1 Reply Last reply Reply Quote 3
                  • gjacobseG
                    gjacobse
                    last edited by

                    Right now, I'll have to pencil GIT onto the project list. I just don't have the bandwidth to investigate it right now. If the unsaved scripts are lost,... they are lost - my own fault and I recognize that. I had some hope that I could recover them.

                    I just have to much going on to take on another project I can't truly invest time into. If I start something, I'll just have to ensure I save it - I think I saw something about making PS:ISE autosave....

                    Thank you for the suggestions and recommendations.

                    IRJI ObsolesceO scottalanmillerS 3 Replies Last reply Reply Quote 0
                    • IRJI
                      IRJ @gjacobse
                      last edited by

                      @gjacobse said in PS ISE: Unsaved Projects:

                      Right now, I'll have to pencil GIT onto the project list. I just don't have the bandwidth to investigate it right now. If the unsaved scripts are lost,... they are lost - my own fault and I recognize that. I had some hope that I could recover them.

                      I just have to much going on to take on another project I can't truly invest time into. If I start something, I'll just have to ensure I save it - I think I saw something about making PS:ISE autosave....

                      Thank you for the suggestions and recommendations.

                      It took more time to write this post, then it would to create a git repo.

                      scottalanmillerS 1 Reply Last reply Reply Quote 3
                      • ObsolesceO
                        Obsolesce @gjacobse
                        last edited by

                        @gjacobse said in PS ISE: Unsaved Projects:

                        Right now, I'll have to pencil GIT onto the project list. I just don't have the bandwidth to investigate it right now. If the unsaved scripts are lost,... they are lost - my own fault and I recognize that. I had some hope that I could recover them.

                        I just have to much going on to take on another project I can't truly invest time into. If I start something, I'll just have to ensure I save it - I think I saw something about making PS:ISE autosave....

                        Thank you for the suggestions and recommendations.

                        Just use vscode. Hell, even notepad++ does autosave more reliably than ISE. But I've never lost anything I didn't save while working in vscode.

                        1 Reply Last reply Reply Quote 4
                        • scottalanmillerS
                          scottalanmiller @IRJ
                          last edited by

                          @IRJ said in PS ISE: Unsaved Projects:

                          @gjacobse said in PS ISE: Unsaved Projects:

                          Right now, I'll have to pencil GIT onto the project list. I just don't have the bandwidth to investigate it right now. If the unsaved scripts are lost,... they are lost - my own fault and I recognize that. I had some hope that I could recover them.

                          I just have to much going on to take on another project I can't truly invest time into. If I start something, I'll just have to ensure I save it - I think I saw something about making PS:ISE autosave....

                          Thank you for the suggestions and recommendations.

                          It took more time to write this post, then it would to create a git repo.

                          Nah, it's about the same 😉

                          1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @gjacobse
                            last edited by

                            @gjacobse said in PS ISE: Unsaved Projects:

                            Right now, I'll have to pencil GIT onto the project list

                            Yes, it's something you should be using as a matter of course all the time. Any time you are doing anything text based - system configurations, writing a script, doing some coding, you should do two things...

                            1. Use an effective tool like VS Code to do it in just because it makes you faster and gives you a standard environment for everything.
                            2. Always store it in a GIT repo. Just start there for everything. Make it a habit so it always goes there first. It's just like a dedicated file store for text.
                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post