AvinZarlez / processing-vscode

A Visual Studio Code extension for the programming language Processing
https://marketplace.visualstudio.com/items?itemName=Tobiah.language-pde
MIT License
177 stars 25 forks source link

"Error: The import processing cannot be resolved" #96

Closed alexErh closed 3 years ago

alexErh commented 3 years ago

Hello, I am trying to use Processing in VScode, but I can't run my sketch, because the processing packages can not be imported. I don't understand, why it happens. I followed this steps. Mabe have to do something else?

I'm using Linux Mint.

AvinZarlez commented 3 years ago

What exactly is the error? Can you post the full error message/logs, and maybe some of your code? That would be helpful in understanding what doesn't work.

Can you run a very basic "Hello world" processing program? If so, then the problem isn't with VSCode, as that is just linking to your processing install.

alexErh commented 3 years ago

Screenshot Error

This is, what i get.

AvinZarlez commented 3 years ago

That is because .java files are handled by default by VSCode as... well, Java. And in straight java there isn't a processing class to include. For the code you are working on you use pde https://code.visualstudio.com/docs/languages/overview#_changing-the-language-for-the-selected-file

Either way your code should actually run when you execute it with processing, this extension doesn't provide intellisense like that.

Besides, isn't that your output? Shouldn't that folder be ignored in your editor?