Comments (13)
I have deleted the C:\Users\<USERNAME>\AppData\Local\axay
and test again. Works great for me, thx!
$ .\pacmc.bat info
pacmc version 0.2.2
dataLocalDir: C:\Users\echo\AppData\Local\axay\pacmc\data
databaseDir: C:\Users\echo\AppData\Local\axay\pacmc\data\db1
databaseDir (canonical): C:\Users\echo\AppData\Local\axay\pacmc\data\db1
Your OS: WINDOWS
Java version: 16.0.1+9-24
from pacmc.
Here is Values.projectDirectories
and Values.projectDirectories.dataLocalDir
I got (on Windows 11 and Windows 10 version 19043.1083, run with PowerShell 7.1.3):
ProjectDirectories (Windows 10):
projectPath = 'axay\pacmc'
cacheDir = 'null\axay\pacmc\cache'
configDir = 'PowerShell 7.1.3\axay\pacmc\config'
dataDir = 'PowerShell 7.1.3\axay\pacmc\data'
dataLocalDir = 'null\axay\pacmc\data'
preferenceDir = 'PowerShell 7.1.3\axay\pacmc\config'
runtimeDir = 'null'
null\axay\pacmc\data
from pacmc.
I got same exception with system integrated PowerShell and cmd.exe
but Values.projectDirectories
and Values.projectDirectories.dataLocalDir
is fine. Seems like that this exception not about the path.
ProjectDirectories (Windows 10):
projectPath = 'axay\pacmc'
cacheDir = 'C:\Users\echo\AppData\Local\axay\pacmc\cache'
configDir = 'C:\Users\echo\AppData\Roaming\axay\pacmc\config'
dataDir = 'C:\Users\echo\AppData\Roaming\axay\pacmc\data'
dataLocalDir = 'C:\Users\echo\AppData\Local\axay\pacmc\data'
preferenceDir = 'C:\Users\echo\AppData\Roaming\axay\pacmc\config'
runtimeDir = 'null'
C:\Users\echo\AppData\Local\axay\pacmc\data
from pacmc.
Workaround: create floaders .\axay\pacmc\data
on C:\Users\<YOUR USERNAME>\AppData\Local
.
from pacmc.
Thank you for your report, I will boot into Windows and test it by myself - if that does not give me the same result as you got, I will have a look into the code which resolves the dataLocalDir
.
from pacmc.
Did you test it on both Windows 11 and Windows 10?
from pacmc.
I have a hard time seeing where you executed the two examples you gave.
Where exactly did you get these results?
ProjectDirectories (Windows 10): projectPath = 'axay\pacmc' cacheDir = 'null\axay\pacmc\cache' configDir = 'PowerShell 7.1.3\axay\pacmc\config' dataDir = 'PowerShell 7.1.3\axay\pacmc\data' dataLocalDir = 'null\axay\pacmc\data' preferenceDir = 'PowerShell 7.1.3\axay\pacmc\config' runtimeDir = 'null'
And in which case did you get these correct results?
ProjectDirectories (Windows 10): projectPath = 'axay\pacmc' cacheDir = 'C:\Users\echo\AppData\Local\axay\pacmc\cache' configDir = 'C:\Users\echo\AppData\Roaming\axay\pacmc\config' dataDir = 'C:\Users\echo\AppData\Roaming\axay\pacmc\data' dataLocalDir = 'C:\Users\echo\AppData\Local\axay\pacmc\data' preferenceDir = 'C:\Users\echo\AppData\Roaming\axay\pacmc\config' runtimeDir = 'null'
from pacmc.
Did you test it on both Windows 11 and Windows 10?
Yes.
I have a hard time seeing where you executed the two examples you gave.
Where exactly did you get these results?
ProjectDirectories (Windows 10): projectPath = 'axay\pacmc' cacheDir = 'null\axay\pacmc\cache' configDir = 'PowerShell 7.1.3\axay\pacmc\config' dataDir = 'PowerShell 7.1.3\axay\pacmc\data' dataLocalDir = 'null\axay\pacmc\data' preferenceDir = 'PowerShell 7.1.3\axay\pacmc\config' runtimeDir = 'null'
And in which case did you get these correct results?
ProjectDirectories (Windows 10): projectPath = 'axay\pacmc' cacheDir = 'C:\Users\echo\AppData\Local\axay\pacmc\cache' configDir = 'C:\Users\echo\AppData\Roaming\axay\pacmc\config' dataDir = 'C:\Users\echo\AppData\Roaming\axay\pacmc\data' dataLocalDir = 'C:\Users\echo\AppData\Local\axay\pacmc\data' preferenceDir = 'C:\Users\echo\AppData\Roaming\axay\pacmc\config' runtimeDir = 'null'
First one I tested on PowerShell 7.1.3. Second one I tested on system integrated PowerShell.
from pacmc.
Ah I see, as I am not a Windows user, can you give me a hint how I can test it on the not system integrated PowerShell? I was only testing it in the PowerShell which is a default profile in Windows Terminal.
from pacmc.
- Install PowerShell-7.1.3-win-x64.msi on your Windows (or x86 if you are using 32 bit).
- After installation finished, reopen Windows Terminal and click down arrow in tab bar. Windows PowerShell is your system integrated PowerShell. PowerShell is the PS 7.1.3 you just installed.
from pacmc.
Thank you, I was able to reproduce the problem, will try to fix this now.
from pacmc.
Fixed with 1f3d92b and 309028c
Also added a new command called pacmc info
(967a06e), you can check if the paths are detected correctly using this command.
from pacmc.
The fix is available in version 0.2.2
, you have to wait some hours until scoop picks up that update.
from pacmc.
Related Issues (20)
- [Feature Request] Prompt users whether to install optional dependencies HOT 4
- pacmc list command not working as expected when not using default archive HOT 1
- [Feature Request] Provide ability to filter searched mods by the version of archive
- Error when installing HOT 3
- Add a search limit option
- Make Curseforge slug resolving more reliable HOT 1
- Issues when removing the default archive
- kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 392: Expected string literal but 'null' literal was found. HOT 1
- Embedded dependencies are not supported in the latest release HOT 1
- The loader Quilt is not supported by Curseforge HOT 1
- Exception when calling "pacmc search better" HOT 6
- Cannot search "Item Scroller` by masady from CurseForge HOT 2
- CurseForge returned a null `downloadUrl` causing an exception HOT 1
- Incorrect dependcies for Sodium Extra from Modrinth HOT 2
- Empty transaction for no compatible version
- DependencyType does not contain element with name 'embedded' HOT 1
- Detect whether archive is in mods folder or not
- this directory chooser code work with debug build when i am making msi package then its not work open only swing dialog
- dead? HOT 1
- Archives with relative paths fail on windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pacmc.