I got this error msg from this code
#The file is get_saves.nims
import parseopt
import "check_installed.nims"
echo check_installed.exists
var ops = initOptParser()
while true:
ops.next
case ops.kind
of cmdEnd: break
of cmdLongOption, cmdShortOption:
echo "got and option"
of cmdArgument:
echo "got and argument"
Run
Here is the other file "check_installed.nims"
from os import `/`
mode = ScriptMode.Verbose
var user_profile = getEnv("userprofile")
let minecraftDir = user_profile / "AppData/Roaming/.minecraft"
var exists* = false
if dirExists(minecraftDir):
exists = true
echo "The Java Edition of minecraft has been installed on this system"
echo "We will now be creating a directory: .resourceManager in your
UserProfile directory( " & user_profile & " )"
else:
echo "The Java Edition of minecraft has not been installed on this system"
echo "Exiting..."
quit(0)
Run
This might be a little spammy, but I am just trying to make a simple script
that checks if minecraft is installed, grabs my save folder and allows me to
manage resource packs and datapacks from another area using a CLI.
This is the output I get from running "nim get_saves.nims"
{{USERNAME}}@{{COMPUTER_NAME}} ~/Documents/GitHub/CodeDump/minecraft
(master) $ nim get_saves.nims
Hint: used config file
'C:\Users\{{USERNAME}}\.choosenim\toolchains\nim-1.2.0\config\nim.cfg' [Conf]
The Java Edition of minecraft has been installed on this system
We will now be creating a directory: .resourceManager in your UserProfile
directory( C:\Users\{{USERNAME}} )
true
stack trace: (most recent call last)
C:\Users\{{USERNAME}}\Documents\GitHub\CodeDump\minecraft\get_saves.nims(4,
24)
C:\Users\{{USERNAME}}\.choosenim\toolchains\nim-1.2.0\lib\pure\parseopt.nim(229,
49) initOptParser
C:\Users\{{USERNAME}}\.choosenim\toolchains\nim-1.2.0\lib\pure\os.nim(2693,
5) paramCount
C:\Users\{{USERNAME}}\.choosenim\toolchains\nim-1.2.0\lib\pure\os.nim(2693,
5) Error: unhandled exception: paramCount is not implemented on Nintendo Switch
[OSError]
Run
I am on a Windows 10 OS and i wonder if this is some kind of bug