Giter Club home page Giter Club logo

Comments (5)

Playacem avatar Playacem commented on June 6, 2024 1

I just tested the changes and the test errors are now resolved.

from dotenv-kotlin.

Playacem avatar Playacem commented on June 6, 2024

The fix I describe is actually a different Windows issue where java-dotenv cant find a .env file in the current working directory without the explicit config.

Edit: opened a new issue for the default config issue, see #11

from dotenv-kotlin.

Playacem avatar Playacem commented on June 6, 2024

I have an environment variable called HOME with the value C:\Users\adm\.
I found this StackOverflow question which references this JDK bug but that bug is supposedly fixed in Java 8.

My Java version:

λ  java -version
openjdk version "1.8.0_192"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_192-b12)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.192-b12, mixed mode)

edit:
According to this answer HOME is not set on a fresh windows system. So we might have to change the test approach

from dotenv-kotlin.

cdimascio avatar cdimascio commented on June 6, 2024

@Playacem thanks so much for trying out the build on Windows.
I've created a branch which i 'think' should resolve the test errors. would appreciate it if you can give it a try. have a look at the windows-fixes branch

i also delivered a small change to update the default path, which i presume will solve the issues you saw on windows

The PR is here: https://github.com/cdimascio/java-dotenv/pull/12

from dotenv-kotlin.

cdimascio avatar cdimascio commented on June 6, 2024

@Playacem Thank you for verifying. i'll merge this to master

from dotenv-kotlin.

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.