Giter VIP home page Giter VIP logo

vscode_of's Introduction

NOTICE

Hello, thanks for visiting this repo. Few yeaers ago, I sent a PR which generates vscode project from oF's Project Generator. It was quickly merged and you can use vscode with oF without this repo. So I no longer update this repo.

Please check oF main repo and also this thread in the forum. https://forum.openframeworks.cc/t/vscode-visual-studio-code-of/28504

I will soon archive this repo to avoid confusion. But let me know if it is still useful for some reason.

Screenshot

Build Status Build status

vscode_oF

openFrameworks empty example for Microsoft Visual Studio Code IDE(vscode). This is not addon. (folder structure is same with addoon)

How to compile example project

  1. download and install vscode.
  2. download or clone this repositry to your /oF/apps folder
  3. open project file with vscode(vscode_oF.code-workspace).
  4. Command Palette (View->Command Palette) and select "Run Build Task".
  5. Select "Build Debug", "Clean ALL", "Build Release", "Clean Debug", "Clean All"
  6. Hit F5 key to start debugging. (Release app will start automaticaly after build)

How to start your own project

  1. Copy and paste /exampleEmpty folder and start your own project.
  2. Edit addons.make file if you want to add addons
  3. You might need to edit setting files inside of ./vscode

It provides quick auto complete feature. Since vscode does not provide built-in debugger, debugging feature is depends on platform.

Curretly tested on OSX, Ubuntu(by @anselanza) and Windows 10.

Folder Structure

/of
  /apps
    /vscode_oF
      /exampleEmpty

oF version

0.10.0, latest master

Known issue

  • "make clean" does not work (bug of openFrameworks Make system)
  • MacOSX.sdk path is hard coded
  • "#include error detected" for header files which is not actualy included for example GL/gl.h is for Linux wihch is not included on osx. This shold be fixed with limitSymbolsToIncludedHeaders property in c_cpp_properties.json But still vs code claims it is missing.

Linux user

  • Depends on your Linux distro, you might need additinal edit on config files. Please see dev branch which include commits from another oF+Linux developper. I don't test dev branch but it might help.

vscode_of's People

Contributors

anselanza avatar hiromtb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode_of's Issues

glibconfig.h and gstconfig.h missing

I'm running Ubuntu 16.04 and after installing intellisense was complaining about not being able to find the glibconfig.h and gstconfig.h. I had to move them from elsewhere on my machine.

sudo cp /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glibconfig.h

sudo cp /usr/lib/x86_64-linux-gnu/gstreamer-1.0/include/gst/gstconfig.h /usr/include/gstreamer-1.0/gst/gstconfig.h

The gstreamer include path in c_cpp_properties.json also needed to be set to /usr/include/gstreamer-1.0/gst in order to be found.

Not sure if this was just my particular setup, but thought I would throw this up in case it helps someone else out!

A small explanation on what it does

This seems like a really nice addition to my openframeworks workflow!
Can you shed a little bit more light on on how to use it?
It is just a template for starting out an of app inside vscode?
Does it provide autocompletion over OF api?

Really looking forward to this,
Thanks!

Include errors when including addons

The empty project works great - very happy as I'm super keen to use vscode on Linux. However, I'm getting an error once I try to include an addon:

#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/home/jack/dev/OF/apps/myApps/exampleEmpty/src/main.cpp).C/C++(1696)
cannot open source file "ofxGui"C/C++(1696)

I've added the addon name to the addons.make file. The include path to the addons folder is correct and I've tried adding an absolute include path to the addon just to see. Any suggestions?

unclarity in readme.md

It says:

Command + B and select "buid debug" for compiling oF and exampleProject. (excute make command)

Command + B is the default to hide / show the side bar. I guess you mean command + shift + b, however, I can't find a option anywhere to specify it is about a debug build.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.