Opened 4 years ago

Last modified 3 years ago

#6272 new defect

installPackage does not work on Windows — at Version 2

Reported by: Andreas Heuermann Owned by: Adrian Pop
Priority: critical Milestone:
Component: Installation program Version: v1.17.0-dev
Keywords: OMEdit, CLI, packages, installer Cc:

Description (last modified by Andreas Heuermann)

When trying to install packages with OMEdit - OpenModelica Compiler CLI
installPackage will fail.

How to reproduce:

installPackage(ModelicaReference, "3.2.3+maint.om", exactMatch=true)
false
getErrorString()
"Error: The MODELICAPATH (C:/Program Files/OpenModelica1.17.0-dev-64bit/lib/omlibrary) does not contain C:/Users/Andreas/AppData/Roaming/.openmodelica/libraries/, so the package index cannot be used.
[C:/Users/Andreas/AppData/Roaming/.openmodelica/libraries/index.json:0:0-0:0:readonly] Error: The package index did not contain an entry for package ModelicaReference that provides version 3.2.3+maint.om.
"

I have the following environment variables:
OPENMODELICAHOME C:\Program Files\OpenModelica1.17.0-dev-64bit\
OPENMODELICALIBRARY C:\Program Files\OpenModelica1.17.0-dev-64bit\lib\omlibrary
which get set by the installer.

When I remove these and restart OMEdit it will work.

Change History (2)

comment:1 by Andreas Heuermann, 4 years ago

Keywords: OMEdit CLI packages installer added
Version: 1.16.0v1.17.0-dev

comment:2 by Andreas Heuermann, 4 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.