This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
DaveDevil's profile picture

error while "edit" a file

Started by DaveDevil, 08 September 2017 - 10:58 AM
DaveDevil #1
Posted 08 September 2017 - 12:58 PM
Hello

I'm coming from a 1.7.10 cauldron server with working computercraft.

now i just started a normal forge 1.10.2, i have many other mods, but computercraft is driving me mad with a stupid issue.

in a new computer, i type "edit helloworld". it opens the editor.

i tried to type a simply hello world string. saved and exited.

i run "hello world" and it works perfectly.

then, i try to open the file with "edit helloworld" and i get the error:

io.lua:69: attempt to concatenate nil and string

i get this error every time i try to edit an existing file…

what can it be?

thanks
Bomb Bloke #2
Posted 09 September 2017 - 02:28 AM
You're using a development build (there's no official MC1.10.2 release for ComputerCraft yet), so I'm afraid a few bugs are to be expected.

This one should be fixed when the following patch gets merged:

https://github.com/dan200/ComputerCraft/pull/429

In the meantime, if you manually paste this lot over your copy's version of io.lua (bearing in mind that the jar is a zip file you can open with 7zip or whatever), that'd serve as a workaround.
Wilma456 #3
Posted 09 September 2017 - 12:57 PM
While waiting for merging, you can download the fixed Version of the io API.
wget https://raw.githubusercontent.com/Wilma456/ComputerCraft-1/iofix/src/main/resources/assets/computercraft/lua/rom/apis/io.lua /io.lua
Now you just have to load the fixed Version in the lua shell:
os.loadAPI("/io.lua")
That fix it. You have the load the API every time you reboot the Computer.