204 |
205 | Option |
206 | Value |
207 | Explanation |
208 | Default |
209 |
210 |
211 | -P:semanticdb:failures:<value> |
212 |
213 | error ,
214 | warning ,
215 | info ,
216 | ignore |
217 |
218 | The level at which the Scala compiler should report crashes that may
219 | happen during SemanticDB generation.
220 | |
221 | warning |
222 |
223 |
224 | -P:semanticdb:profiling:<value> |
225 |
226 | on ,
227 | off
228 | |
229 |
230 | Controls basic profiling functionality that computes the overhead of
231 | SemanticDB generation relative to regular compilation time
232 | (on for dumping profiling information to console,
233 | off for disabling profiling).
234 | |
235 | off |
236 |
237 |
238 | -P:semanticdb:include:<value> |
239 | Java regex |
240 | Which source files to include in SemanticDB generation? |
241 | .* |
242 |
243 |
244 | -P:semanticdb:exclude:<value> |
245 | Java regex |
246 | Which source files to exclude from SemanticDB generation? |
247 | ^$ |
248 |
249 |
250 | -P:semanticdb:sourceroot:<value> |
251 | Absolute or relative path |
252 |
253 | Used to relativize source file paths into
254 | TextDocument.uri .
255 | |
256 | Current working directory |
257 |
258 |
259 | -P:semanticdb:targetroot:<value> |
260 | Absolute or relative path |
261 |
262 | The output directory to produce META-INF/semanticdb/**/*.semanticdb
263 | files.
264 | |
265 |
266 | The compiler output directory, matches the sbt setting key classDirectory
267 | and scalac command-line option -d .
268 | |
269 |
270 |
271 | -P:semanticdb:text:<value> |
272 |
273 | on ,
274 | off
275 | |
276 |
277 | Specifies whether to save source code in
278 | TextDocument.text (on for yes,
279 | off for no).
280 | |
281 | off |
282 |
283 |
284 | -P:semanticdb:md5:<value> |
285 |
286 | on ,
287 | off
288 | |
289 |
290 | Specifies whether to save a hexadecimal formatted MD5 fingerprint of the source
291 | file contents in TextDocument.md5 (on for yes,
292 | off for no).
293 | |
294 | on |
295 |
296 |
297 | -P:semanticdb:symbols:<value> |
298 |
299 | all ,
300 | local-only ,
301 | none
302 | |
303 |
304 | Specifies which symbol informations to save in
305 | TextDocument.symbols (all for both local and global symbols,
306 | local-only for only local symbols and
307 | none for no symbols).
308 | |
309 | all |
310 |
311 |
312 | -P:semanticdb:diagnostics:<value> |
313 |
314 | on ,
315 | off
316 | |
317 |
318 | Specifies whether to save compiler messages in
319 | TextDocument.diagnostics (on for yes,
320 | off for no).
321 | |
322 | on |
323 |
324 |
325 | -P:semanticdb:synthetics:<value> |
326 |
327 | on ,
328 | off
329 | |
330 |
331 | Specifies whether to save some of the compiler-synthesized code in
332 | the currently unspecified TextDocument.synthetics
333 | section (on for yes, off for no).
334 | |
335 | off |
336 |
337 |
338 |
339 | `semanticdb-scalac` can be hooked into Scala builds in a number of ways.
340 | Read below for more information on command-line tools as well as integration
341 | into Scala build tools.
342 |
343 | ### Metac
344 |
345 | Metac is a command-line tool that serves as a drop-in replacement for `scalac`
346 | and produces `*.semanticdb` files instead of `*.class` files. It supports the
347 | same command-line arguments as `scalac`, including the compiler plugin options
348 | [described above](#scalac-compiler-plugin).
349 |
350 | ```
351 | metac [