Giter Site home page Giter Site logo

doctoolchain.github.io's People

Contributors

ascheman avatar bratkartoffel avatar kreymerman avatar rdmueller avatar txemanu avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

doctoolchain.github.io's Issues

Docker command call fails if docker installation path contains spaces

Docker can also be installed in directories, that contain spaces.
This is not likely on linux/wsl, but as #21 adds support for cygwin/msys2 (used in git bash), the path for docker on Windows is by default /c/Program Files/Docker/Docker/resources/bin/docker (from git bash's perspective), which leads to error:

bash: /c/Program: No such file or directory

when e.g. ./dtcw tasks --group=doctoolchain is executed in git bash.

Possible fix is in PR #22

Review next line:

# TODO: Review next line:
$command = "$docker_cmd run -u $(id -u):$(id -g) --name doctoolchain${dockerVersion} -e DTC_HEADLESS=1 -e DTC_SITETHEME -p 8042:8042 --rm -it --entrypoint /bin/bash -v ${PWD}:/project 'rdmueller/doctoolchain:v$dockerVersion' -c ""doctoolchain . $commandArgs $DTC_OPTS && exit"""
}
else {
Write-Host "docToolchain not installed."


This issue was generated by todo based on a TODO comment in 7535386. It's been assigned to @rdmueller because they committed the code.

Non default JAVA_HOME makes wrapper fail

If java is not on a default path (as set by /etc/default/login or other means), the wrapper fails since the executable cannot be found when doctoolchain is finally called.

The reason for this is the call to bash with the -l flag in line 37:

bash -cl "$command"

This causes bash to work as login shell and reset any environment variables to their login defaults.

dtcw.ps1 parsing and other errors

Hi!

I just tested docToolChain 2.0 with the new wrapper and found that it does not run ootb (dtcw - docToolchain wrapper V0.18 (PS)). A closing bracket is missing (no Docker is installed on my Windows system):

PS C:\Workspace\archdocu2> ./dtcw.ps1 generateHtml
At C:\Workspace\archdocu2\dtcw.ps1:116 char:6
+ else {
+      ~
Missing closing '}' in statement block or type definition.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : MissingEndCurlyBrace

After fixing this, I encountered the next problem:

Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Workspace\archdocu2\dtcw.ps1:121 char:23
+         if (Test-Path $FolderName) {
+                       ~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Test-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCom
   mand

I assumed that instead of if (Test-Path $FolderName), it needs to be if (Test-Path $home_path).
With this change, the download succeeds and the script is able to run.

some wget versions throw errors

Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Hide outputs ?

# TODO: Hide outputs ?
New-Item -Path $home_path -Name $folder_name -ItemType "directory" | Out-Null
Invoke-WebRequest $distribution_url -OutFile "$dtcw_path\source.zip"
Expand-Archive -LiteralPath "$dtcw_path\source.zip" -DestinationPath "$dtcw_path\"
# Remove-Item "$dtcw_path\source.zip" # << Remove .zip ?
$command = "$dtcw_path\docToolchain-$version\bin\doctoolchain.bat . $commandArgs $DTC_OPTS"


This issue was generated by todo based on a TODO comment in 7535386. It's been assigned to @rdmueller because they committed the code.

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.