Code Monkey home page Code Monkey logo

Comments (13)

WordlessEcho avatar WordlessEcho commented on August 18, 2024 1

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.

WordlessEcho avatar WordlessEcho commented on August 18, 2024

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.

WordlessEcho avatar WordlessEcho commented on August 18, 2024

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.

WordlessEcho avatar WordlessEcho commented on August 18, 2024

Workaround: create floaders .\axay\pacmc\data on C:\Users\<YOUR USERNAME>\AppData\Local.

from pacmc.

jakobkmar avatar jakobkmar commented on August 18, 2024

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.

jakobkmar avatar jakobkmar commented on August 18, 2024

Did you test it on both Windows 11 and Windows 10?

from pacmc.

jakobkmar avatar jakobkmar commented on August 18, 2024

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.

WordlessEcho avatar WordlessEcho commented on August 18, 2024

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.

jakobkmar avatar jakobkmar commented on August 18, 2024

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.

WordlessEcho avatar WordlessEcho commented on August 18, 2024
  1. Install PowerShell-7.1.3-win-x64.msi on your Windows (or x86 if you are using 32 bit).
  2. 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.
    image

from pacmc.

jakobkmar avatar jakobkmar commented on August 18, 2024

Thank you, I was able to reproduce the problem, will try to fix this now.

from pacmc.

jakobkmar avatar jakobkmar commented on August 18, 2024

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.

jakobkmar avatar jakobkmar commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.