-
Notifications
You must be signed in to change notification settings - Fork 81
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
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined #165
Comments
Is this a problem with aqtinstall? |
Well, * Since the log posted by the OP contains some irrelevant content, I saved the full log of test-and-build-macos-11 (1.18.x, macos-11, 5.15) | fixup · akiyosi/goneovim@fdc6b1a (it's the latest failed run, though) and post it here: full log
Maybe the config YAML file is also helpful: YAML (effective part) test-and-build-macos-11:
strategy:
matrix:
go-version: [1.18.x]
platform: [macos-11]
qtversion: [5.15]
runs-on: ${{ matrix.platform }}
env:
GOPATH: ${{ github.workspace }}
QT_DIR: ${{ github.workspace }}/Qt
QT_VERSION: ${{ matrix.qtversion }}
QT_API: 5.13.0
QT_DEBUG: false
GO111MODULE: off
GOPROXY: https://goproxy.io
QMAKE_APPLE_DEVICE_ARCHS: arm64
# SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Install Qt for macOS
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qtversion }}
host: mac
target: desktop
dir: ${{ github.workspace }}
modules: 'qtcharts qtdatavis3d qtpurchasing qtvirtualkeyboard qtwebengine qtnetworkauth qtwebglplugin qtscript'
setup-python: 'false'
# mirror: 'http://mirrors.ocf.berkeley.edu/qt/'
See Downloading logs § Using workflow run logs - GitHub Docs to learn how to download the full log. |
OK, I've seen the change you made and the successful run: test-and-build-macos-11:
strategy:
matrix:
go-version: [1.18.x]
platform: [macos-11]
- qtversion: [5.15]
+ qtversion: [5.15.2]
...
- name: Install Qt for macOS
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qtversion }} I tested it and can reproduce the error in a blank repository, too. The fix about the version number also takes effect in my repo. |
I think the following line is the source of the bug: install-qt-action/action/src/main.ts Line 332 in 19c09fc
Since |
@pzhlkj6612 |
Well, no, please keep this issue open. This is not your mistake. You specified "5.15" as the version number, and aqtinstall didn't think that's wrong and downloaded Qt 5.15.2. However, install-qt-action didn't know the change, so the program went wrong and showed the error message. This is actually a case not covered by the program, and you have done a nice test for it. So, please re-open this issue, the people in the future will try to fix it (you also could be the one). |
Just add more info, I got same error when use - name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6' Below is the copy of GitHub Actions log: Copy of logRun jurplel/install-qt-action@v3
Run actions/setup-python@v4
Successfully set up CPython (3.11.0)
Run jurplel/install-qt-action/action@v3
/usr/bin/sudo apt-get update
Hit:1 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:3 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:4 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease [10.5 kB]
Get:6 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [758 kB]
Get:7 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [169 kB]
Get:8 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [11.4 kB]
Get:9 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [488 kB]
Get:10 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [74.9 kB]
Get:11 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [761 kB]
Get:12 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [128 kB]
Get:[13](https://github.com/Hongbo-Miao/hongbomiao.com/actions/runs/3668360753/jobs/6201430824#step:4:14) http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [14.0 kB]
Get:14 http://azure.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [7300 B]
Get:15 http://azure.archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [3324 B]
Get:16 http://azure.archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [1580 B]
Get:17 http://azure.archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadata [272 B]
Get:18 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [6740 B]
Get:[19](https://github.com/Hongbo-Miao/hongbomiao.com/actions/runs/3668360753/jobs/6201430824#step:4:21) http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [348 B]
Get:[20](https://github.com/Hongbo-Miao/hongbomiao.com/actions/runs/3668360753/jobs/6201430824#step:4:22) http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [525 kB]
Get:21 http://azure.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [113 kB]
Get:22 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [7352 B]
Get:23 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [452 kB]
Get:24 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted Translation-en [69.2 kB]
Get:25 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [622 kB]
Get:26 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [82.7 kB]
Get:27 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [11.0 kB]
Hit:28 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
Get:29 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main arm64 Packages [16.7 kB]
Get:30 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 Packages [60.1 kB]
Get:31 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main armhf Packages [10.6 kB]
Fetched 4729 kB in 1s (4546 kB/s)
Reading package lists...
/usr/bin/sudo apt-get install build-essential libgl1-mesa-dev libpulse-dev libxcb-glx0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb1 libxkbcommon-x11-0 -y
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.9ubuntu3).
libxcb-glx0 is already the newest version (1.14-3ubuntu3).
libxcb-glx0 set to manually installed.
libxcb-render0 is already the newest version (1.14-3ubuntu3).
libxcb-render0 set to manually installed.
libxcb-shm0 is already the newest version (1.14-3ubuntu3).
libxcb-shm0 set to manually installed.
libxcb-sync1 is already the newest version (1.14-3ubuntu3).
libxcb-sync1 set to manually installed.
libxcb-xfixes0 is already the newest version (1.14-3ubuntu3).
libxcb-xfixes0 set to manually installed.
libxcb1 is already the newest version (1.14-3ubuntu3).
libxcb1 set to manually installed.
The following additional packages will be installed:
libasyncns0 libegl-dev libegl-mesa0 libegl1 libflac8 libgl-dev libgles-dev
libgles1 libgles2 libglvnd-core-dev libglvnd-dev libglx-dev libopengl-dev
libopengl0 libopus0 libpulse-mainloop-glib0 libpulse0 libsndfile1
libvorbisenc2 libxcb-xkb1
Suggested packages:
opus-tools pulseaudio
The following NEW packages will be installed:
libasyncns0 libegl-dev libegl-mesa0 libegl1 libflac8 libgl-dev
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6UiPlugin.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6SvgWidgets.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6Qml.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6Sql.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6QuickTemplates2.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6QuickDialogs2.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6LabsWavefrontMesh.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6Help.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6QmlCore.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6Concurrent.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6QmlIntegration.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6OpenGLWidgets.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6Network.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6QuickControls2Impl.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6Designer.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6Xml.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6QuickWidgets.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6QmlXmlListModel.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6QuickDialogs2Utils.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6Test.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6LabsSharedImage.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6DBus.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6QmlLocalStorage.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6QmlModels.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6Linguist.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6QuickDialogs2QuickImpl.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6LabsAnimation.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6OpenGL.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6QuickTest.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6QuickControls2.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6LabsSettings.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6Svg.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6Gui.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6Core.pc
Patching /home/runner/work/hongbomiao.com/Qt/6.4.1/gcc_64/lib/pkgconfig/Qt6QmlWorkerScript.pc
Finished installation
Time elapsed: 15.115[42](https://github.com/Hongbo-Miao/hongbomiao.com/actions/runs/3668360753/jobs/6201430824#step:4:45)036 second
Error: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined This one works without any issue: - name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '6.*' |
Not sure what a good way to fix this would be--I am not really sure how to get whatever aqtinstall interprets as the version number out from stdout. Maybe i could process ahead of time with simplespec, but I think qt has some weird version number edge cases since aqtinstall has a subclass with some extra checks. PRs welcome |
Note these lines, copied from the log above:
The code that generates that second line is here: getLogger("aqt.installer").info(f"Resolved spec '{qt_version_or_spec}' to {version}") I wrote that line specifically for this use case: so that anyone running aqtinstall would be able to parse the text printed to the info logs to find out which version aqtinstall chose. You should be able to pick that out easily with a regex. Alternately, you could also run
There should only be the one edge case: Qt 5.9.0 installs to a directory called |
I would like to also add, that there might also be an other case, where this happens, specifically if you install tools only, because then I don't have anything in the - name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.15.2'
tools: 'tools_ifw,qt.tools.ifw.45'
tools-only: 'true'
cache: true |
It appears that the only real uses of install-qt-action/action/src/main.ts Line 337 in 19c09fc
I don’t see a problem with this, but if you have a CI record that shows otherwise I’d like to see it. |
But as @pzhlkj6612 wrote in #165 (comment) it happens in install-qt-action/action/src/main.ts Line 332 in 19c09fc
so it fails before you actually use the |
I also created a test repo, and you can see the failed run here: https://github.com/asztalosdani/install-qt-action-test/actions/runs/3930776609/jobs/6721197106 The relevant step of the workflow.yml: - name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.15.2'
tools: 'tools_ifw,qt.tools.ifw.45'
tools-only: 'true' |
I think #173 ought to fix this. I've modified the test code so that versions I have not added any tests for a tools-only installation, but I have moved the instantiation of |
I think it would be wise to add the tools-only test. You can see it here in a commit in my test branch 5695c68 |
Agreed, testing |
Bump, when will this be merged? |
The following error seems to occur on macos.
This did not occur yesterday.
full log
The text was updated successfully, but these errors were encountered: