-
Notifications
You must be signed in to change notification settings - Fork 105
Syntax highlighting stops working in workspace #151
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
Comments
ok thanks for raising this, most likely to do with the latest release which had significant changes in it. @Wyverex42 do you have a link to the project so we can test ourselves? or is it private? |
Sorry about that. It was a known issue, and I honestly just forgot about it. Uploaded PR #152 to fix. If maybe @Wyverex42 can test that to see if it works? I'm not certain if there are any gotchas with how cargo handles workspace paths. |
Hi, thanks for the update. The project is private, so I cannot share this here. Here's what I'm doing:
Then, whenever I save a *.rs file, I get those messages: What confuses me about this is that my file is for example So until I find out how to run the plugin from code, I'm afraid I can't verify that fix :-/ |
I'm not a GitHub expert, but I just wanted to confirm how you downloaded the repository. I'm not sure if there's a convenient way to fetch the tree from a PR, but you can download the attempted fix from my repo here: If you are in the directory |
There is a way to fetch the repo for a PR. Just press the '<>' button on the specific commit and you get the repo view (the one you sent me). If I run the So it seems to me that the plugin somehow messes up the paths. I have no idea why it would try to look in |
Sorry, I must have messed up my previous tests, because now as the change made it into Package Control, I had the same issue with So I investigated further and found that while running the This is a hack fix that fixes my problems but probably not what you would want as a general solution. |
This should help with any sort of conflicts that may cause the cwd to change. Fix rust-lang#151
* Add missing test files. * Don't alter cwd in plugin. This should help with any sort of conflicts that may cause the cwd to change. Fix #151
* Add missing test files. * Don't alter cwd in plugin. This should help with any sort of conflicts that may cause the cwd to change. Fix rust-lang#151
If I have a non-lib project with a custom lib in the directory. This fails again with |
Uh oh!
There was an error while loading. Please reload this page.
Sublime Text 3 (Build 3125)
Ubuntu 16.10
Rust Enhanced 1.2.1
I have a workspace directory containing a number of crates and a Cargo.toml, just containing a [workspace] section with a "members" entry. Each crate still has its own Cargo.toml. My sublime project contains just the folder of one of those sub-crates.
As long as this workspace Cargo.toml exists, syntax highlighting stops working. If I rename it, syntax highlighting works again.
The error message is
Rust Enhanced: Failed to find target for '
<path to the rs>
'The text was updated successfully, but these errors were encountered: