-
Notifications
You must be signed in to change notification settings - Fork 46
Project views directory inference doesn't seem to work #120
Comments
i'll create a documentation
i want to change it - projectview will be loaded also during a
|
In fastpass we reload the project during workspace/buildTargets call which is invoked during sync. I am not sure when workspace/reload is used. Selecting project view file is nice feature, from my perspective very low priority though. For most of the users it will be enough to modify their projectview file. If they want to work on a different project, they will create separate project with separate project view. This is because we want multiple projects open at once.
Oh, I thought it might work as when I put wrong path for the directory, I had an error from I think io_bazel, that no targets are under this dir. |
Shouldn't it be at the same place where IntelliJ Bazel plugin expects it?
|
as far as i know, bazel plugin allows to specify a path to the file |
Expected behavior for bazel in my opinion is that when build file is changed or the scope of the project (project view) I need a way to sync it with IntelliJ's view of the project. The only way that I know now is to run Reload All BSP Projects action. If it invokes workspace/reload then it sounds right to me.
Yes. When project is created from UI, you may select existing path or create new file. It will be placed inside .ijwb directory which is created in the workspace root. It also contains .idea dir. We have a custom command line implementation for preparing bazel project. It creates a dir WORKSPACE_ROOT/bazel-imports/PROJ_NAME/ and puts there generated .bazelproject file and .idea dir with some xml file that specifies path to this .bazelproject so that when this project is opened, bazel plugin picks it up and syncs the project. |
things to do:
|
It is not documented enough. I didn't know where to put the
projectview.bazelproject
, I hoped it would be .bsp dir, but it seems to be at repository root. It is hard to figure out from code. Also I found some undocumented way of passing targets through command line (?). Not sure how to use it.I tried with following content:
Nothing was imported. I had to add targets as well:
The text was updated successfully, but these errors were encountered: