-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
[bug] moon console
VSCode extension unable to find moon binary.
#1170
Comments
For the moon binary, it's probably finding it since we fallback to the global: https://github.com/moonrepo/dev/blob/master/packages/vscode-extension/src/moon.ts#L13 As for the workspace root, is the vscode root === the moon root? That should just work: https://github.com/moonrepo/dev/blob/master/packages/vscode-extension/src/moon.ts#L37 |
I'm not sure how to answer. I have many folders in my workspace. But I've tried both |
I'm not entirely sure how to debug a vscode extension. There's no logging in the extension itself, so if vscode doesn't provide anything, then we have nothing at the moment. No one else has reported this issue. What vscode and moon versions? |
Okay, so I did some digging, and I'm pretty sure this is the bug:
I was very confused by the whole Oddly enough, I did try to set my workspace root to For context on making logs for the extension. In your code I was able to define a variable |
Can you briefly talk about/outline your repository structure, where moon is setup, and what folder youre opening with vscode, so that I can get a better picture? |
Sure. I think what's missing here is that I have many folders in my workspace. I.e. my workspace is created by starting a blank workspace and then adding multiple folders to it via Now, for me, all of the repositories are in the same folder and I have a workspace folder for my vscode with the following structure:
It is the third repo/folder that I'm trying to use
A tricky thing here that I'm reporting is that if my moom experiment goes well, I'll probably convert |
Ok yeah, right now the extension kind of assumes that you're opening it at the root of the moon workspace, but this is like a parent folder up. It should be easy enough to support, so let me tinker around a bit with it. |
@mctrafik Quick question, so setting the |
That's correct. That doesn't work. |
That's wild :o |
I have about the same problem as mctrafik. We have projects nested fairly deeply nested away from the monorepo/moon root, and prefer to open the individual project folder in VSCode. So I need to go upwards in the "Workspace Root" config path, something |
This PR will support multiple workspace folders: moonrepo/dev#61 |
Describe the bug
No matter what I tried, the VSCode extension doesn't find the workspace root.
Steps to reproduce
Not sure. My dir tree:
But moon is installed using a bash script, so it's at:
/Users/user/.moon/bin/moon
. The extension asks for relative paths. Which is all very confusing. I tried pasting absolute path as well as relative to project. Nothing happens.I tried finding any logs in the
extensions host
but there weren't any from the extension.Expected behavior
I expect it to detect the moon workspace in the root of the repo. And if not, for there to be debug logs in the extension host that would be helpful for troubleshooting.
Screenshots
The text was updated successfully, but these errors were encountered: