-
Notifications
You must be signed in to change notification settings - Fork 57
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
Import statement in interface block causes uncontrolled error #187
Comments
I notice the same on my side. Any idea about how to fix it? |
@plevold Is the rest of the syntax for this example legal? Can I ignore the diagnostic and linting errors in |
This has now been fixed in |
The original example was missing the declaration of the module class_myclass
implicit none
private
public myclass
type, abstract :: myclass
private
contains
procedure(my_func), deferred :: my_func
end type
interface
subroutine my_func(this)
! error happens when I start typing "myclass" here
import myclass
class(myclass), intent(in) :: this
end subroutine
end interface
end module
Awsome! Thanks a lot for the effort. This project is making Fortran development much more pleasant! |
@plevold Thanks for the example code. I will try and sort out the autocomplete suggestions in the next few weeks. Glad to see people using the new |
@gnikit : You just need to be quite deep inside the fortran github bubble to find out about it. I updated my small guide (https://github.com/JHenneberg/Guide_VSCode-fortran) with your extension. |
With this minimal example:
I get the following tracebacks in the VSCode output view when I start typing "myclass" after "import":
The text was updated successfully, but these errors were encountered: