Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【3.5.0】cant get https://gitlab.cocos.net/publics/runtime-web-adapter #10997

Closed
ankye opened this issue May 7, 2022 · 10 comments
Closed

【3.5.0】cant get https://gitlab.cocos.net/publics/runtime-web-adapter #10997

ankye opened this issue May 7, 2022 · 10 comments
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@ankye
Copy link
Contributor

ankye commented May 7, 2022

Cocos Creator version

3.5.0

System information

mac and win11

Issue description

F:\work\cocos-engine>npm install

typedoc-plugin-cc@file:scripts/typedoc-plugin postinstall F:\work\cocos-engine\node_modules\typedoc-plugin-cc
npm run build

[email protected] build F:\work\cocos-engine\node_modules\typedoc-plugin-cc
tsc

[email protected] postinstall F:\work\cocos-engine
gulp build-debug-infos && gulp build-declarations && npm run fetch-ral && npm run install:typedoc-plugin

[00:38:41] Using gulpfile F:\work\cocos-engine\gulpfile.js
[00:38:41] Starting 'build-debug-infos'...
[00:38:41] Finished 'build-debug-infos' after 18 ms
[00:38:41] Using gulpfile F:\work\cocos-engine\gulpfile.js
[00:38:41] Starting 'build-declarations'...
Typescript version: 4.3.5
With index: true
With exports: false
With editor exports: true
Generating...
F:\work\cocos-engine\tsconfig.json (15,5): Option 'outFile' cannot be specified with option 'isolatedModules'.
Bundling...
Failed to resolve type import("cocos/core/gfx").Texture, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").Sampler, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").SamplerInfo, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").BlendFactor, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").BlendFactor, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").BlendFactor, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").BlendFactor, There is no symbol info.
Failed to resolve type import("cocos/core").Size, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").BlendFactor, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").BlendFactor, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").BlendFactor, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").BlendFactor, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").Attribute, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").Attribute, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").Attribute, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").Attribute, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").Attribute, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").Attribute, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").Attribute, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").InputAssembler, There is no symbol info.
Failed to resolve type import("cocos/core/math").Size, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").DescriptorSetLayout, There is no symbol info.
Failed to resolve type import("cocos/core/renderer/scene").Camera, There is no symbol info.
Failed to resolve type import("cocos/core/renderer/scene").Camera, There is no symbol info.
Culling interface: 965.797ms
[00:39:02] Finished 'build-declarations' after 21 s

[email protected] fetch-ral F:\work\cocos-engine
node ./scripts/fetch-ral.js

Checking ral file...

Cleaning old runtime adapter...

Remove ral directory: 'F:/work/cocos-engine/scripts/runtime-web-adapter'

Running command: 'git clone https://gitlab.cocos.net/publics/runtime-web-adapter' in 'F:/work/cocos-engine/scripts/runtime-web-adapter'

Cloning into 'runtime-web-adapter'...

fatal: unable to access 'https://gitlab.cocos.net/publics/runtime-web-adapter/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to gitlab.cocos.net:443

Running command: 'git checkout for-creator-3' in 'F:/work/cocos-engine/scripts/runtime-web-adapter'

Running command: 'git reset --hard 03196a40cf71174662ae36c25954ea3761320738' in 'F:/work/cocos-engine/scripts/runtime-web-adapter'

Running command: 'npm install' in 'F:/work/cocos-engine/scripts/runtime-web-adapter'

Running command: 'gulp' in 'F:/work/cocos-engine/scripts/runtime-web-adapter'

Copy files from 'F:/work/cocos-engine/scripts/runtime-web-adapter' to 'F:/work/cocos-engine/platforms/runtime'

Fetch ral failed Error: ENOENT: no such file or directory, copyfile 'F:/work/cocos-engine/scripts/runtime-web-adapter/dist/common/web-adapter.js' -> 'F:/work/cocos-engine/platforms/runtime/common/web-adapter.js'
at Object.copyFileSync (fs.js:1991:3)
at F:\work\cocos-engine\scripts\fetch-ral.js:90:12
at Array.forEach ()
at copyRal (F:\work\cocos-engine\scripts\fetch-ral.js:87:46)
at F:\work\cocos-engine\scripts\fetch-ral.js:153:9 {
errno: -4058,
syscall: 'copyfile',
code: 'ENOENT',
path: 'F:/work/cocos-engine/scripts/runtime-web-adapter/dist/common/web-adapter.js',
dest: 'F:/work/cocos-engine/platforms/runtime/common/web-adapter.js'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] fetch-ral: node ./scripts/fetch-ral.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] fetch-ral script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ankye\scoop\persist\nodejs\cache_logs\2022-05-07T16_40_29_183Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: gulp build-debug-infos && gulp build-declarations && npm run fetch-ral && npm run install:typedoc-plugin
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ankye\scoop\persist\nodejs\cache_logs\2022-05-07T16_40_29_240Z-debug.log

Relevant error log output

No response

Steps to reproduce

get the code and then npm install

Minimal reproduction project

No response

@ankye ankye added Bug Needs Triage Needs to be assigned by the team labels May 7, 2022
@PPpro
Copy link
Contributor

PPpro commented May 12, 2022

fixed here

#11001
#11013

@PPpro PPpro closed this as completed May 12, 2022
@Ronsku
Copy link

Ronsku commented Jun 3, 2022

@PPpro is it really fixed?
I tried 3.6.0 branch and I still get these errors
image

this is from the "postinstall" and "build" npm runs. What do you suggest to do to fix this?

@PPpro
Copy link
Contributor

PPpro commented Jun 6, 2022

#11001
#11013

This 2 PR doesn't fix the issue you mentioned, it fix the error like:

Cloning into 'runtime-web-adapter'...

fatal: unable to access 'https://gitlab.cocos.net/publics/runtime-web-adapter/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to gitlab.cocos.net:443

And sorry the issue you mentioned is not easy to solve at present :(
but it should have little impact

This issue could be solved after engine modularization,which is a long term task

@Ronsku

@Ronsku
Copy link

Ronsku commented Jun 6, 2022

@PPpro How do you run and develop on the engine then?
I would just get it to run since I really need to look and try to modify the engine to get rid of dead code in a 2D game.
I'm here referring to my ticket: #10354

@PPpro
Copy link
Contributor

PPpro commented Jun 6, 2022

How do you run and develop on the engine then?
I would just get it to run since I really need to look and try to modify the engine to get rid of dead code in a 2D game.

Failed to resolve type import("cocos/core/gfx").Texture, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").Sampler, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").SamplerInfo, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").BlendFactor, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").BlendFactor, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").BlendFactor, There is no symbol info.
Failed to resolve type import("cocos/core/gfx").BlendFactor, There is no symbol info.
....

All these log should be warning messages to generate cc.d.ts,
they are not the error messages that blocking you from running the engine.

I am not quite sure what issue you encounter when you are running the engine ?

@Ronsku
Copy link

Ronsku commented Jun 6, 2022

@PPpro Thanks for your swift responses!
I see, I thought that was required to run it properly. Because when I start the engine with npm run server It does start up the server but it is missing a bunch of files:
image

@Ronsku
Copy link

Ronsku commented Jun 6, 2022

@PPpro Here is from the terminal
image

@PPpro
Copy link
Contributor

PPpro commented Jun 6, 2022

@Ronsku Oh, sorry, we have not maintained the playground for a long time, the npm run server is not working now.

For now, if you want to run the custom engine, you can try on the docs Engine Customization Workflow
https://docs.cocos.com/creator/manual/en/advanced-topics/engine-customization.html?h=customiz

@Ronsku
Copy link

Ronsku commented Jun 6, 2022

@PPpro ahaa, I see. Thanks!

@mzvast
Copy link

mzvast commented Aug 9, 2022

@Ronsku Oh, sorry, we have not maintained the playground for a long time, the npm run server is not working now.

For now, if you want to run the custom engine, you can try on the docs Engine Customization Workflow https://docs.cocos.com/creator/manual/en/advanced-topics/engine-customization.html?h=customiz

Oh my god. I was trying to figure out how to run playground with no luck.

Maybe we should warning devs somewhere before they came into this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

4 participants