Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

Mongoose IDE plugin for VS Code

I'm having trouble getting the code completion to work with VS Code and the MOS IDE plugin.

  • macOS High Sierra
  • mos 20180208-182630/master@ab7f50e1+
  • gcc symlinked to clang 9 (Apple LLVM version 9.0.0 (clang-900.0.39.2)

    • also have gcc-7 installed (7.3.0)
  • Code 1.20.1
  • Mongoose OS IDE 0.3.0. (or 1.0.0, not sure)
  • C/C++ 0.15.0

#include "mgos.h" is squiggled green and cannot be found.

Do I need to manually manage my IncludePath?

Thanks

Comments

  • Left4TacoLeft4Taco Atlanta

    Did you add a mos.yml file in your directory? Plugin will identify your project as a mongoose project according to this file.

  • edited March 9

    yes. Open directory in vs code looks like

    /.vscode
    /build
    /deps
    /fs
    /src
    mos.yml
    README.md

    I can <select port> and <setup WiFi> in the bottom status bar of vs code, so it looks like the plugin is kind of working.

  • edited May 20

    cannot open source file "stm32f7xx_hal.h" (dependency of "mgos.h")

    Where can I find "stm32f7xx_hal.h" or otherwise fix this issue?

  • FrodeLFrodeL Norway
    Hi, I had similar issue, although a different file. I'm using ESP32, maybe you have different platform.

    Here is my includePath: https://github.com/Scalpel78/Ghost/blob/master/MongooseOS/Folkracer/.vscode/c_cpp_properties.json

    See especially the paths that contain 'frode'.
  • vtongvtong Ho Chi Minh City, Vietnam

    Same issue here.
    I also try to build local to get the include file and add "${workspaceFolder}/deps/mongoose-os/fw/include" to c_cpp_properties.json, still doesn't resolve the issue.
    I see it just IDE warning, we still be able to build, flash the app.
    So I ignore it for now.

  • tripflextripflex Orlando, FL

    Yeah and the extension source isn't online anywhere (although can be found in ~/.vscode/extensions ... why have you guys not released the source for the extension if you're not going to be updating it?

Sign In or Register to comment.