Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

Installer: 487 Bad argument expected table got number #338

Open
365Tito opened this issue Jul 16, 2019 · 1 comment
Open

Installer: 487 Bad argument expected table got number #338

365Tito opened this issue Jul 16, 2019 · 1 comment

Comments

@365Tito
Copy link

365Tito commented Jul 16, 2019

Image in attachment
ScreenShot 168

@bsergent
Copy link

I ran into the same problem but was able to fix it by splitting line 487 into two lines with a temporary string variable. Seems that Lua is having trouble parsing that line correctly otherwise. However, I immediately ran into another problem once OneOS actually booted: main.lua:26: attempt to index a nil value, so it's looking to me like there are a few other problems with the current version, possibly related to the newer versions of ComputerCraft. Regardless, here's the fix for the installer:

Line 487:

 f = http.get(('https://raw.github.com/'..Settings.GitHubUsername..'/'..Settings.GitHubRepoName..'/'..latestReleaseTag..Settings.InstallPath..v.path):gsub(' ','%%20'))

can be replaced with:

local temp = ('https://raw.github.com/'..Settings.GitHubUsername..'/'..Settings.GitHubRepoName..'/'..latestReleaseTag..Settings.InstallPath..v.path):gsub(' ','%%20')
f = http.get(temp)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants