This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271228 - java.io.FileNotFoundException: /home/sova/NetBeansProjects/Quote_1
Summary: java.io.FileNotFoundException: /home/sova/NetBeansProjects/Quote_1
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-03 11:41 UTC by soldatov
Modified: 2017-08-14 11:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 229919


Attachments
stacktrace (1.99 KB, text/plain)
2017-08-03 11:41 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2017-08-03 11:41:11 UTC
This bug was originally marked as duplicate of bug 232711, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build cnd-trunk-build-3793-on-20170731)
VM: OpenJDK 64-Bit Server VM, 25.141-b16, OpenJDK Runtime Environment, 1.8.0_141-b16
OS: Linux

User Comments:
soldatov: In case if '.clang-format' field is selected, but empty




Stacktrace: 
java.io.FileNotFoundException: /home/sova/NetBeansProjects/Quote_1
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.getInputStream(FolderObj.java:627)
   at org.openide.filesystems.FileObject.asBytes(FileObject.java:712)
   at org.openide.filesystems.FileObject.asText(FileObject.java:739)
   at org.openide.filesystems.FileObject.asText(FileObject.java:751)
   at org.netbeans.modules.cnd.makeproject.ui.editor.CndDocumentCodeStyleProviderImpl$FileChangeListenerImpl.<init>(CndDocumentCodeStyleProviderImpl.java:129)
   at org.netbeans.modules.cnd.makeproject.ui.editor.CndDocumentCodeStyleProviderImpl.getCurrentCodeStyle(CndDocumentCodeStyleProviderImpl.java:105)
Comment 1 soldatov 2017-08-03 11:41:14 UTC
Created attachment 164895 [details]
stacktrace
Comment 2 soldatov 2017-08-03 11:46:18 UTC
Scenario:
- Create C/C++ project
- Call Project Properties window
- Select Formatting > Use clang-format > File .clang-format item
- Do not specify text field
- Press OK button
- Format file
==> java.io.FileNotFoundException