Giter VIP home page Giter VIP logo

Comments (7)

JacquesLucke avatar JacquesLucke commented on August 11, 2024

Hm that is probably not supported currently. Are the addons in separate folders?

from blender_vscode.

NickGlenn avatar NickGlenn commented on August 11, 2024

Yes, they are currently in separate folders under a master addons/ folder. So the structure is...

addons/
  plugin_a/
    __init__.py
  plugin_b/
    __init__.py
  plugin_c/
    __init__.py

from blender_vscode.

JacquesLucke avatar JacquesLucke commented on August 11, 2024

Does it work when you load these folders separately into vscode?

from blender_vscode.

NickGlenn avatar NickGlenn commented on August 11, 2024

Yes it does, and that's what I've been doing for the time being. Part of why it'd be nice to launch specific plugins from the root is that the documentation/site files for the plugins are in another folder at the top level (sibling to addons/), which means I need another window open for editing the site and documentation for the addons. Additionally, context switching between addons also means independent VSCode windows that I'd need to hop between.

I do realize that I'm likely in the minority of users with this pattern, but it might be a useful consideration for others who have mono repo projects or who manage related addons under an umbrella project.

Great work on this extension by the way!

from blender_vscode.

JacquesLucke avatar JacquesLucke commented on August 11, 2024

Visual Studio Code supports multi-root-workspaces (https://code.visualstudio.com/docs/editor/multi-root-workspaces). With that, you do not need to have multiple instances running at the same time. The blender extension should be able to support that, never really tried though.

from blender_vscode.

NickGlenn avatar NickGlenn commented on August 11, 2024

I tried that approach as well. If only one addon is present in any of the listed folders for the workspace, it works. When an addon exists in more than one folder listed in the *.code-workspace, it fails to load any of them.

I'll try and do some more investigation into this issue later this week.

from blender_vscode.

Griperis avatar Griperis commented on August 11, 2024

Use folders settings in .code-workspace file as follows:
{ "folders": [ { "path": "addon1" }, { "path": "addon2" }, ] ... }

All folders have to contain the __init__.py file, which is this extension looking for.

from blender_vscode.

Related Issues (20)

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.