# Is there a way to check the gatling syntax whatever you use eclipse or intellij?

**URL:** <https://community.gatling.io/t/is-there-a-way-to-check-the-gatling-syntax-whatever-you-use-eclipse-or-intellij/4280>\
**Category:** Gatling (Open-Source)\
**Created:** [April 17, 2018, 9:32am UTC](https://community.gatling.io/t/is-there-a-way-to-check-the-gatling-syntax-whatever-you-use-eclipse-or-intellij/4280 "2018-04-17T09:32:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yi.wang](https://avatars.discourse-cdn.com/v4/letter/y/f1d935/32.png) [@yi.wang](https://community.gatling.io/u/yi.wang)\
**Post date:** [April 17, 2018, 9:32am UTC](https://community.gatling.io/t/is-there-a-way-to-check-the-gatling-syntax-whatever-you-use-eclipse-or-intellij/4280/1 "2018-04-17T09:32:18Z")

</div>

I tried to write Gatling code in intellij, but I found there is no syntax tip when I write any object. When I tried to format the code with import optimization, I found the gatling related import disappeared.  
When I run it from command line, I just find the syntax error. There is not any indicator in IDE. Does anyone know how to let IDE work for syntax auto completion for Gatling? Thanks!

---

<div class="post-metadata">

**Author:** ![Johnson\_Chuang](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Johnson\_Chuang](https://community.gatling.io/u/Johnson_Chuang)\
**Post date:** [April 18, 2018, 1:54am UTC](https://community.gatling.io/t/is-there-a-way-to-check-the-gatling-syntax-whatever-you-use-eclipse-or-intellij/4280/2 "2018-04-18T01:54:52Z")

</div>

Did you use [Gatling’s maven archetype](https://gatling.io/docs/current/extensions/maven_archetype/) to create the project at first? That might help a bit.

---

<div class="post-metadata">

**Author:** ![yi.wang](https://avatars.discourse-cdn.com/v4/letter/y/f1d935/32.png) [@yi.wang](https://community.gatling.io/u/yi.wang)\
**Post date:** [April 18, 2018, 2:51am UTC](https://community.gatling.io/t/is-there-a-way-to-check-the-gatling-syntax-whatever-you-use-eclipse-or-intellij/4280/3 "2018-04-18T02:51:54Z")

</div>

Thanks for your reply. I have applied Gatling maven archtype to my project. But it seemed no help on my requirement. I don’t want to run the gatling in eclipse or intellij, just want to develop the script with auto completion since I am not familiar with gatling syntax. Thanks!

---

<div class="post-metadata">

**Author:** ![yi.wang](https://avatars.discourse-cdn.com/v4/letter/y/f1d935/32.png) [@yi.wang](https://community.gatling.io/u/yi.wang)\
**Post date:** [April 18, 2018, 3:29am UTC](https://community.gatling.io/t/is-there-a-way-to-check-the-gatling-syntax-whatever-you-use-eclipse-or-intellij/4280/4 "2018-04-18T03:29:25Z")

</div>

Thanks for your instruction. I have applied scala sdk into my project. But it only can prompt the scala syntax for me. on gatling specific syntax, i still can’t get tip as below image. After the “http” object, there should be “baseUrl” or “header”, etc. But there are only scala syntax in the list.

[![](https://lh3.googleusercontent.com/-XXfpTNaqBVU/Wta7TEEfkrI/AAAAAAAAAbM/SB-Fq_Uk7W0_nUUNWd8enDhyjCZqfxgJgCLcBGAs/s320/Screen%2BShot%2B2018-04-18%2Bat%2B11.25.43.png)](https://lh3.googleusercontent.com/-XXfpTNaqBVU/Wta7TEEfkrI/AAAAAAAAAbM/SB-Fq_Uk7W0_nUUNWd8enDhyjCZqfxgJgCLcBGAs/s1600/Screen%2BShot%2B2018-04-18%2Bat%2B11.25.43.png)

---

<div class="post-metadata">

**Author:** ![Johnson\_Chuang](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Johnson\_Chuang](https://community.gatling.io/u/Johnson_Chuang)\
**Post date:** [April 18, 2018, 3:41am UTC](https://community.gatling.io/t/is-there-a-way-to-check-the-gatling-syntax-whatever-you-use-eclipse-or-intellij/4280/5 "2018-04-18T03:41:49Z")

</div>

I guess there might be something wrong with your intellij importing/opening the gatling project. In the “Project” view you should see lots of libraries from maven and the default directories setup of gatling archetype(src/test/resources & src/test/scala).

[![](https://lh3.googleusercontent.com/-ht2feP3QHEM/Wta-WCZKIpI/AAAAAAAAAJw/bBpUR15REC8HN1WvyE1tJqM710N8JnkCQCLcBGAs/s320/project.png)](https://lh3.googleusercontent.com/-ht2feP3QHEM/Wta-WCZKIpI/AAAAAAAAAJw/bBpUR15REC8HN1WvyE1tJqM710N8JnkCQCLcBGAs/s1600/project.png)

---

<div class="post-metadata">

**Author:** ![yi.wang](https://avatars.discourse-cdn.com/v4/letter/y/f1d935/32.png) [@yi.wang](https://community.gatling.io/u/yi.wang)\
**Post date:** [April 18, 2018, 6:05am UTC](https://community.gatling.io/t/is-there-a-way-to-check-the-gatling-syntax-whatever-you-use-eclipse-or-intellij/4280/6 "2018-04-18T06:05:43Z")

</div>

Many thanks, I have solved the issue. After “mvn package” under the project, the packages were downloaded and worked well. Thanks again!

---

<div class="post-metadata">

**Author:** ![Johnson\_Chuang](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Johnson\_Chuang](https://community.gatling.io/u/Johnson_Chuang)\
**Post date:** [April 18, 2018, 8:59am UTC](https://community.gatling.io/t/is-there-a-way-to-check-the-gatling-syntax-whatever-you-use-eclipse-or-intellij/4280/7 "2018-04-18T08:59:31Z")

</div>

Nice, glad to see the issue resolved.
