Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support workspace (.eww) files, batch builds, stronger Intellisense #35

Closed
gcampbell-msft opened this issue Feb 2, 2023 · 6 comments
Closed
Labels
enhancement New feature or request

Comments

@gcampbell-msft
Copy link
Contributor

Note: This may be a slight duplicate of #30, but I believe it's different enough for its own issue.

Support for workspace files would be make this extension much more like the IAR IDE, which would make it easier to use VSCode for the inner development loop. This would make it more obvious to use overall.

I believe that supporting workspace would make the following things available:

  1. Easier viewing of a project from the IAR IDE, since .eww files are often (if not always) used in the IDE.
  2. Stronger Intellisense. Currently if a file isn't in the project the Intellisense could be much better. Expanding the Intellisense to files inside of the entire workspace, rather than just the active project, would be great.
  3. Batch builds. I think this would start down the path of supporting batch builds, which is something that is very helpful for users.

Another note: It may make sense to split these into separate issues, but I created it as one for now.

@schmitzel76
Copy link

Could definitely use this. We use batch build to make sure the projects are build in the correct order, but with vscode we now have to manually select and build each project.

@JanWielgus
Copy link

I found a workaround for batch build. I created a VS Code tasks where each task build's one subproject and then one vsc task that runs subtasks in a sequence.
You can create such task clicking Ctrl+Shift+p, then Tasks: Configure Task and then type iar and choose iar: Build Project
Example task will be created for you. You can change path to your IAR ewp project.

image
image

@leihen0525
Copy link

log:
`...
Updating build tree...

0 file(s) deleted.
Updating build tree...

ERROR, Unknown argument variable: Failed to expand argument variable "$WS_DIR$"`

I have some public files that need workspaces as paths to boot, but VSC IAR doesn't support EWW, it would be nice if I could parse EWW

@HampusAdolfsson
Copy link
Collaborator

@leihen0525 Workspace support is one of the features we're looking to implement next, but we can't give an exact date for it yet.

In the meantime, you can manually specify the value of $WS_DIR$ by creating a file with the extension ‘.custom_argvars’ somewhere in your VS Code workspace with the following contents:

<?xml version="1.0" encoding="UTF-8"?>
<iarUserArgVars>
    <group name="MyGroup" active="true">
        <variable>
            <name>WS_DIR</name>
            <value>$PROJ_DIR$</value>
        </variable>
    </group>
</iarUserArgVars>

This file should be picked up and displayed in the extension configuration under “Custom Argument Variables File”.
This will have $WS_DIR$ take the value of the project directory (the .ewp file directory), but you can change the value to whatever you need. It should solve any problems you have with building or generating intellisense configurations.

@leihen0525
Copy link

@HampusAdolfsson This method works. Thank you very much for your help. Thank you!!!

@HampusAdolfsson
Copy link
Collaborator

Workspace and batch build support was just released in 1.30.1! Please open new issues if you have any feedback or problems with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants