Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
IceWolf

Unexpected symbol near '<':

Question

So, I wrote a program a while ago for opencomputers that manages a nuclearcraft reactor using various functions. It works wonderfully well on my computer. Recently someone else downloaded it and is now trying to use it on their computer, but when they try to run it they get an error: "/lib/process.lua:52: /home/nreactorguistart.lua:7: unexpected symbol near '<':" Now, I've been programming for quite a while, but this specific error doesn't make any sense to me. The script that I wrote in which this error is referring to is only 4 lines of actual code (lines 10-13) with the first portion (lines 1-9) of the script containing a block comment using --[[ comment ]]--. Here is a link to the code that I'm referring to: https://github.com/IceWolf777/Nuclearcraft-Reactor-UI-ControlPanel/blob/master/Nuclearcraft Reactor UI Control Panel/home/nReactorGUIStart.lua here is a link to the reddit post in while this gentleman is getting the error. If anyone could help me out with this error, I would greatly appreciate it.

 

 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

I had them do that and take a picture of what they saw. It was essentially the html information from the website. I sent them a direct link to the actual files that they would need to download to be able to use my program. Thanks for your reply though!

Share this post


Link to post
Share on other sites
  • 0

From what I can tell, the error bubbled up through your require().  For more evdence, the "<" character is not in the file that you linked to on github, sothe only way something could be expected near it is if it appears inside some external piece of code; in this case, the require()ed nReactorGUI.lua.  I know that I am responding a few months latter, but If you still have not fixed the error, I would be happy to have a look at the code for you.

Share this post


Link to post
Share on other sites
  • 0

Thanks for the reply, it turned out that he had downloaded the web page that was hosting the files instead of the files themselves.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.