GithubHelp home page GithubHelp logo

Comments (9)

pedram-shariat avatar pedram-shariat commented on June 24, 2024 2

apiato version : 12.0.0
Documentation container : 3.0.0
apidoc: 1.0.0

from apiato.

pedram-shariat avatar pedram-shariat commented on June 24, 2024 1

Windows 10
Configs folder exists in this path
But it still doesn't work

from apiato.

yalsicor avatar yalsicor commented on June 24, 2024 1

ENOENT: no such file or directory, stat 'C:\laragon\www\reemod-api\app\Containers/Vendor/Documentation/ApiDocJs/Config
s/apidoc.public.json'

This does look like a directory separator problem. When running PHP in a Unix-like OS (bare, container or the WSL), slashes will be expected as directory separators. But when running PHP directly on Windows with Laragon or XAMPP, backslashes are expected as directory separators. In this case it looks like both are mixed and Windows probably does not find the files this way. I think a refactor using PHPs DIRECTORY_SEPARATOR constant will fix this problem.

from apiato.

Mohammad-Alavi avatar Mohammad-Alavi commented on June 24, 2024

@pedram-shariat Could you please tell your Apiato, Documentation container & ApiDocJs versions?

from apiato.

Mohammad-Alavi avatar Mohammad-Alavi commented on June 24, 2024

@pedram-shariat What is your OS?

Try to create the Config folder at app/Containers/Vendor/Documentation/ApiDocJs/ and rerun the command.

Please tell me if this fixes your problem so I can develop a fix later. 🙏

from apiato.

Anas-Nabulsi avatar Anas-Nabulsi commented on June 24, 2024

I'm facing same issue here

from apiato.

Mohammad-Alavi avatar Mohammad-Alavi commented on June 24, 2024

I just released a possible fix based on @yalsicor findings but I cannot test it because I am using WSL.
@Anas-Nabulsi could you please do a composer update and see if it is fixed?
Thanks.

from apiato.

Anas-Nabulsi avatar Anas-Nabulsi commented on June 24, 2024

@Mohammad-Alavi
Now I'm receiving the following error:
`
file_put_contents(/C:\Users\APP_PATH\app\Containers\Vendor\Documentation\ApiDocJs\Configs\apidoc.public.json): Failed to open stream: No such file or directory

at app\Containers\Vendor\Documentation\Tasks\RenderApidocJsonTask.php:85
81▕ if (!is_dir($dir) && !mkdir($dir)) {
82▕ throw new \RuntimeException(sprintf('Directory "%s" was not created', $dir));
83▕ }
84▕ }
➜ 85▕ file_put_contents("{$dir}/{$file}", $contents);
86▕ }
87▕ }
88▕

1 app\Containers\Vendor\Documentation\Tasks\RenderApidocJsonTask.php:85

2 app\Containers\Vendor\Documentation\Tasks\RenderApidocJsonTask.php:62
App\Containers\Vendor\Documentation\Tasks\RenderApidocJsonTask::fileForceContents("", "{"name":"apiato","description":"apiato (Public API) Documentation","title":"Welcome to apiato","version":"1.0.0","url":"http://api.apiato.test","sampleUrl":"http://api.apiato.test","template":{"withCompare":true,"withGenerator":true},"header":{"title":"API Overview","filename":"Containers/Vendor/Documentation/UI/WEB/Views/documentation/header.md"},"order":[]}")
`
note APP_PATH is just a placeholder for the actual app path.

There seem to be a missing file called apidoc.public.json and a missing folder called Configs.
I tried to create the folder Configs under ApiDocJs and an empty apidoc.public.json.
But when I run php artisan apiato:apidoc again the file gets deleted and I receive the same error.

from apiato.

Mohammad-Alavi avatar Mohammad-Alavi commented on June 24, 2024

Thanks to @Anas-Nabulsi
This is fixed in v3.0.5.
Please do a composer update to get the fix.

from apiato.

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.