Community
    • Login

    Error When Opening Any .js File

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 1.9k Views 2 Watching
    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.
    • Chris Is AwesomeC Offline
      Chris Is Awesome
      last edited by Chris Is Awesome

      I’m trying to switch IDEs from Monodevelop to Notepad++ for use with Unity for my game development. But when I try to open a .js file made in Monodevelop using Unityscript (Unity’s version of Javascript), I get the error “Session file is either corrupted or invalid”. Is this because it’s not true Javascript, as I’ve said, it is actually Unityscript? Either way, .js is a text file, so it should be able to open it, right?

      I’ve tried setting the language to Javascript and that changes nothing. I’ve reinstalled the latest version of N++ and have tried other file formats. It only happens with .js files.

      Any help would be greatly appreciated!

      1 Reply Last reply Reply Quote 0
      • dailD Offline
        dail
        last edited by

        Under Settings > Preferences > Misc. make sure “session file ext” is not set to “js”

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors