question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generated project_root symlink slows down Intellij

See original GitHub issue

Background

With the recent changes to support buck-cells the following commit: https://github.com/facebook/buck/commit/8960005e2ec8900e8fc7c26a7b7239a7f512931a#diff-5ba521442393ce8db30deb6aa188a0eaR213 introduced a changeset that generates a symlink under buck-out/project_root that points back to the main project when running any sort of buck build command.

Issue

This introduces a potential infinite recursion in Intellij as the Git plugin attempts to resolve all the git roots and ultimately drills deep down into the symlink infinitely which causes performance issues in Intellij.

VCS Root: [Git] -
2018-09-12 11:24:25,281 [  16921]   INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [../buck-out/project_root] 
2018-09-12 11:24:25,281 [  16921]   INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [../buck-out/project_root/buck-out/project_root] 
2018-09-12 11:24:25,281 [  16921]   INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [../buck-out/project_root/buck-out/project_root/buck-out/project_root] 
2018-09-12 11:24:25,281 [  16921]   INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [../buck-out/project_root/buck-out/project_root/buck-out/project_root/buck-out/project_root] 
2018-09-12 11:24:25,281 [  16921]   INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [../buck-out/project_root/buck-out/project_root/buck-out/project_root/buck-out/project_root/buck-out/project_root] 
2018-09-12 11:24:25,281 [  16921]   INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [../buck-out/project_root/buck-out/project_root/buck-out/project_root/buck-out/project_root/buck-out/project_root/buck-out/project_root]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
bobyangyfcommented, Nov 1, 2018

Fixed as of b5687e3f3f1f634308540fdf115c6322d793cd34

0reactions
mikeb01commented, Dec 8, 2018

Any idea when a version with this fix will be released?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with symlinks in projects
I have composite project consists from: - several git submodules and root git repository - symlinks from submodules to directories inside...
Read more >
Why it's updating indices again and again? making it ...
IntelliJ IDEA indexes any folder that is added to the module content roots or libraries. It could be that you've added your home...
Read more >
Intellij Idea is freezing every couple of seconds, blocked ...
The thread dumps show that index of config's file is building very slow. ... In the attached listing I am working on the...
Read more >
Problem with symlinks in projects
Hello, question to include a symlink folder. A drive was mounted on a Linux machine. There are several directories on the drive, one...
Read more >
Symlinks to UNC mount points problem : IDEA-119608
The project was created earlier on linux machine. I faced two problems 1. If I try to load project directly from symbolic link...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found