UndefVarError Main.xxx issue

I have just bought a new computer, which is a MacBook Air with an M3 chip. Ever since installing Julia and adding the extension via Visual Studio Code I receive errors such as "UndefVarError: ‘…’ not defined in ‘Main.xxx’.

I have never had this issue on my last computer, which was also a Mac. Does anyone have an idea how to solve this?

Thanks in advance.

You’re not giving enough information. See Please read: make it easier to help you

In particular:

  • provide example Julia code that causes the errors
    • paste the code and format it using Markdown
  • provide the complete error message and stack trace
    • paste the output and format it using Markdown
1 Like

Welcome to Jluia discourse! :wave:

Additionally to the already mentioned two points:

  • did you copy over a startup file, but did not yet install the packages?
  • do you run code from another machine, but did not “bring” (or copy) the environment?

That would be the two main ideas I have that might be reasons for the error, but I would need more details to provide more detailed answers.

1 Like