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

Path for lime.projectFile in multi-root projects #105

Open
47rooks opened this issue Feb 15, 2024 · 4 comments
Open

Path for lime.projectFile in multi-root projects #105

47rooks opened this issue Feb 15, 2024 · 4 comments

Comments

@47rooks
Copy link

47rooks commented Feb 15, 2024

Currently lime.projectFile on Windows, at any rate, requires an absolute path when specified in a multi-root workspace *.code-workspace file. It would be great if this could be made a path relative to the location of the *.code-workspace file. That way you could version control this file:

  • in a portable way
  • without exposing directory structure on your system outside the repo clone
@47rooks
Copy link
Author

47rooks commented Feb 17, 2024

ok - the projectFile path is relative. The problem is that the lime extension spawns the run task in the lower level directory - the directory that contains the project.xml. So if you have this sort of structure:

composites
    examples
    tests
    composites.code-workspace

if you set lime.projectFile to "..\examples\Project.xml"
then the plugin will correctly build.

@47rooks 47rooks changed the title Relative path for lime.projectFile Path for lime.projectFile in multi-root projects Feb 17, 2024
@player-03
Copy link
Contributor

So is that good enough, or is there still some change you want to see?

@47rooks
Copy link
Author

47rooks commented Feb 18, 2024

Actually not sure. It is a bit counter-intuitive to have to set this this way. It would make more sense for it to be relative to the code-workspace file location. Obviously this can be used - I am still playing with it and it's not broken yet. I guess it depends a bit on what the plot is for the lime-extension to support multi-root workspaces.

The main thing right now though is being able to switch to different Project.xml files in this structure. But that's really a different issue. I'll file one on that separately I guess because at the moment I have to manually edit the code-wrokspaces to be able to switch between tests and examples which both have Project.xmls.

@joshtynjala
Copy link
Member

I guess it depends a bit on what the plot is for the lime-extension to support multi-root workspaces.

Unfortunately, we can't support multi-root workspaces until the Haxe extension does first. At least not without providing our own custom Haxe code intelligence.

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

No branches or pull requests

3 participants