Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IntelliJ][ReportedByUser] Uncaught Exception java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.Worker thread. #4532

Closed
ListenToATree opened this issue Aug 5, 2020 · 2 comments · Fixed by #4541

Comments

@ListenToATree
Copy link

IntelliJ build version: 2020.2 IU-202.6397.94
OS: Mac OS X
JDK: JetBrains s.r.o. 11.0.7
Plugin version: 3.40.0-2020.2
Additional Info: None
Parent component:

com.intellij.openapi.wm.impl.IdeRootPane[,0,22,1920x964,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=]

Error message:

IdeaLoggingEvent[message=null, throwable=java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.Worker thread.
	at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:59)
Caused by: rx.exceptions.OnErrorFailedException: Error occurred when trying to propagate error to Observer.onError
Caused by: rx.exceptions.CompositeException: 2 exceptions occurred. 
Caused by: rx.exceptions.CompositeException$CompositeExceptionCausalChain: Chain of Causes for CompositeException In Order Received =>
Caused by: java.io.IOException: Cannot run program "func" (in directory "/Users/mingli/IdeaProjects/azure-function-examples/target/azure-functions/azure-function-examples-1596612498166"): error=2, No such file or directory
	at com.microsoft.intellij.runner.functions.localrun.FunctionRunState.runFunctionCli(FunctionRunState.java:120)
@ListenToATree
Copy link
Author

Hello, I was following the guide from "Quickstart: Create an Azure Functions project using IntelliJ IDEA"(https://docs.microsoft.com/en-us/azure/developer/java/toolkit-for-intellij/quickstart-functions).
But I failed to run it locally. Thank you for any help.

@Flanker32
Copy link
Member

@ListenToATree Thanks for your report, there are some issues in mac which make IntelliJ plugins may get empty PATH so the toolkit can not get the function core tools to run function locally, could you please try the workaround in the guidance and try again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants