Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions developer-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,26 @@ in the Eclipse install directory. Increase the following setting as needed:
256M
```

<h4>IDE with sbt</h4>

When you use IDEs like VSCode or Cursor and you build from terminal with `sbt`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also provide tips for step-by-step setups for these IDEs? In the IDE setup section, we only have guidelines for IntelliJ. It's better to have instructions for them too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest I don't have that information now. I'm definitely not opposed to that idea but I don't have enough material at hand and the main purpose of this PR is to document this specific behavior. We can of course have a better write up about how to set VSCode/Cursor for spark project.

a common issue you'll encounter is something like

```
java.lang.RuntimeException: Failed to find name hashes for
```

This is because multiple instances are trying to build the project simultaneously. Normally
the culprit is your Java/Scala plugin in your IDEs.

In order to fix this, first you need to disable auto-build of your plugins. Then you need to
clear all the artifacts with `sbt clean`. You'll also need to clear cache in

```
~/.m2
~/.ivy2/
```

<a name="nightly-builds"></a>
<h3>Nightly builds</h3>

Expand Down
18 changes: 18 additions & 0 deletions site/developer-tools.html
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,24 @@ <h4>Eclipse</h4>
256M
</code></pre></div></div>

<h4>IDE with sbt</h4>

<p>When you use IDEs like VSCode or Cursor and you build from terminal with <code class="language-plaintext highlighter-rouge">sbt</code>,
a common issue you&#8217;ll encounter is something like</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>java.lang.RuntimeException: Failed to find name hashes for
</code></pre></div></div>

<p>This is because multiple instances are trying to build the project simultaneously. Normally
the culprit is your Java/Scala plugin in your IDEs.</p>

<p>In order to fix this, first you need to disable auto-build of your plugins. Then you need to
clear all the artifacts with <code class="language-plaintext highlighter-rouge">sbt clean</code>. You&#8217;ll also need to clear cache in</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>~/.m2
~/.ivy2/
</code></pre></div></div>

<p><a name="nightly-builds"></a></p>
<h3>Nightly builds</h3>

Expand Down