---
title: "Requesting JavaScript AST from selection"
author: "ccscu"
date: "2013-05-07T18:25:31Z"
tags: []
categories: ["Web前端"]
slug: "requesting-javascript-ast-from-selection"
draft: false
lastmod: "2013-05-07T18:25:31Z"
id: 1861283
url: "https://ccscu.iteye.com/blog/1861283"
---

## Eclipse Error - An internal error occurred during: "Requesting JavaScript AST from selection"解决方案

用 Eclipse Helios或者Eclipse indigo 编写Javascript函数中出现 return 时。

错误提示：

An internal error occurred during: "Requesting JavaScript AST from selection".

java.lang.NullPointerException.

解决方法：

修改 Mark Occurrences。快捷键：Alt+Shift+O。

(Window--&gt;Preferences-&gt;Javascript--&gt;Editor--&gt;Mark Occurrences)

原文地址：[http://hi.baidu.com/java513/item/26c7bc5f287966938c12edf5](http://hi.baidu.com/java513/item/26c7bc5f287966938c12edf5)